#include <robbase.h>
Public Methods | |
| Task (Bot *bot, Task *creator, rint dir) | |
| adds itself to bot->tasks. More... | |
| ~Task () | |
| removes itself from bot->tasks. | |
| ExecReturnType | exec () |
| ExecReturnType | reboot () |
| Bot * | getRefBot () |
Fetches the robot on the reference field of this bot, given by its active task this. | |
| void | getRefBotPos (rint &x, rint &y) |
Calculates the reference robot position, given the current active task this. | |
Public Attributes | |
| Bot * | bot |
| Simulation * | sim |
| Abkürzung. | |
| rint | vars [taskVarLength] |
| unsigned long | instrStarted |
| is too large for vars. | |
| Instr * | curInstr |
| bool | seized |
Each robot always has at least one task running, but can have more with some option sets.
|
||||||||||||||||
|
adds itself to bot->tasks.
|