diff options
Diffstat (limited to 'world.h')
-rw-r--r-- | world.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -49,11 +49,13 @@ class Robot{ Location ip={0,0}; int waited=0; array<uint16_t,20> vars; - uint16_t active; + uint16_t* resolveVar(const Argument &arg,World &world); Instruction resolve(World &world); int calcDuration(Instruction &ins); void execute(Instruction &ins,World &world); + void advanceIP(); + bool ipInRange() const; public: const Team *team; @@ -61,6 +63,8 @@ public: int iset; bool mobile; + uint16_t active=0; + int heading; void load(int idx,const Script &scr); |