1 #ifndef COMMON_SCRIPTRUNNER_H_
2 #define COMMON_SCRIPTRUNNER_H_
9 #include "../math/Vector.h"
22 void Run(ScriptHost &, const Script &);
25 void *AddressRegister(int n) const { return address[n]; }
26 int IntegerRegister(int n) const { return integer[n]; }
27 const math::Vector<int> &VectorRegister(int n) const { return vector[n]; }
31 void Exec(Script::Code code);
34 Script::Code PopCode();
36 const math::Vector<int> &PopVector();
38 void Compare(int, int);
51 static const int numRegisters = 7;
52 void *address[numRegisters];
53 int integer[numRegisters];
54 math::Vector<int> vector[numRegisters];