aboutsummaryrefslogtreecommitdiff
path: root/world.h
diff options
context:
space:
mode:
Diffstat (limited to 'world.h')
-rw-r--r--world.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/world.h b/world.h
index ccbdbcf..162110d 100644
--- a/world.h
+++ b/world.h
@@ -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);