4 * Created on: Oct 13, 2012
8 #ifndef COMMON_SCRIPTRUNNER_H_
9 #define COMMON_SCRIPTRUNNER_H_
13 #include "../geometry/Vector.h"
26 void Run(ScriptHost &, const Script &);
29 void *AddressRegister(int n) const { return address[n]; }
30 int IntegerRegister(int n) const { return integer[n]; }
31 const geometry::Vector<int> &VectorRegister(int n) const { return vector[n]; }
35 void Exec(Script::Code code);
38 Script::Code PopCode();
40 const geometry::Vector<int> &PopVector();
42 void Compare(int, int);
55 static const int numRegisters = 7;
56 void *address[numRegisters];
57 int integer[numRegisters];
58 geometry::Vector<int> vector[numRegisters];
66 #endif /* COMMON_SCRIPTRUNNER_H_ */