1 #ifndef COMMON_SCRIPTRUNNER_H_
2 #define COMMON_SCRIPTRUNNER_H_
6 #include "../geometry/Vector.h"
19 void Run(ScriptHost &, const Script &);
22 void *AddressRegister(int n) const { return address[n]; }
23 int IntegerRegister(int n) const { return integer[n]; }
24 const geometry::Vector<int> &VectorRegister(int n) const { return vector[n]; }
28 void Exec(Script::Code code);
31 Script::Code PopCode();
33 const geometry::Vector<int> &PopVector();
35 void Compare(int, int);
48 static const int numRegisters = 7;
49 void *address[numRegisters];
50 int integer[numRegisters];
51 geometry::Vector<int> vector[numRegisters];
59 #endif /* COMMON_SCRIPTRUNNER_H_ */