X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FScriptRunner.h;h=7ee5b836c5d3472fec84eaf65f8d9420853f2eb7;hb=4309d259becd96ead792678257e910c03a6b4a3d;hp=879877d8467a2463f1680863a78ad1bbb8178328;hpb=0bbc2eda56eba3ea195c2043370ff4d3fd29ca79;p=l2e.git diff --git a/src/common/ScriptRunner.h b/src/common/ScriptRunner.h index 879877d..7ee5b83 100644 --- a/src/common/ScriptRunner.h +++ b/src/common/ScriptRunner.h @@ -1,16 +1,12 @@ -/* - * ScriptRunner.h - * - * Created on: Oct 13, 2012 - * Author: holy - */ - #ifndef COMMON_SCRIPTRUNNER_H_ #define COMMON_SCRIPTRUNNER_H_ -#include "fwd.h" +namespace common { + class ScriptHost; +} + #include "Script.h" -#include "../geometry/Vector.h" +#include "../math/Vector.h" #include @@ -28,7 +24,7 @@ public: void *AddressRegister(int n) const { return address[n]; } int IntegerRegister(int n) const { return integer[n]; } - const geometry::Vector &VectorRegister(int n) const { return vector[n]; } + const math::Vector &VectorRegister(int n) const { return vector[n]; } private: void Reset(); @@ -37,7 +33,7 @@ private: void *PopAddress(); Script::Code PopCode(); int PopInt(); - const geometry::Vector &PopVector(); + const math::Vector &PopVector(); void Compare(int, int); @@ -55,7 +51,7 @@ private: static const int numRegisters = 7; void *address[numRegisters]; int integer[numRegisters]; - geometry::Vector vector[numRegisters]; + math::Vector vector[numRegisters]; Uint8 compare; @@ -63,4 +59,4 @@ private: } -#endif /* COMMON_SCRIPTRUNNER_H_ */ +#endif