diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-03-01 17:23:43 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-03-01 17:23:43 +0100 |
commit | 0e7a419f55dfed12fd60a0cd41be324a398673f9 (patch) | |
tree | fc582be239eb94573dc3451c8cc01fa8e0db0d39 /world.h | |
parent | fe009c64ef688dc0342752e728c011c855daeaca (diff) |
Execute some instructions!
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); |