diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-03-14 19:50:12 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-03-14 19:50:12 +0100 |
commit | 1ad8073e792ec152120f785d0172e37c2f6c2a59 (patch) | |
tree | 33fe375261885b3da6009441b31257de55c8edc7 | |
parent | 4a271518149cba9522172e408e57a0d75099388e (diff) |
Add support for $Fields
-rw-r--r-- | world.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -84,7 +84,13 @@ Instruction Robot::resolve(World &world){ break; } case arg_t::constant: - assert(false); + assert(!arg.remote); + if(arg.name=="fields"){ + arg.type=arg_t::number; + arg.num=SIZE; + } else assert(false); + break; + default: assert(false); } |