Callbacks reference

0 CB_TAKE_DAMAGE Called when the robot takes some damage.
0 Amount of damage taken
1 CB_ENEMY_FOUND Called once for each enemy found during scan.
0 Enemy X coordinate
1 Enemy Y coordinate
2 Direction to enemy
3 Distance to enemy
4 Enemy heading
5 Enemy speed
6 Enemy ID
2 CB_ENEMY_NOT_FOUND Called if an enemy is not found suring scan.
3 CB_WALL_FOUND Called if a wall was found during wallscan.
0 X coordinate of the point where the wall was found.
1 Y coordinate of the point where the wall was found.
2 Distance to the wall.
4 CB_WALL_NOT_FOUND Called if a wall was not found during wallscan.
5 CB_COLLIDE_WALL Called when the robot collides with a wall.
6 CB_MESSAGE_RECEIEVED Called when a message is receieved on the channel the robot is listening to.
0 ID of the sending robot.
1 Message ID.
2 Length of the message.
7 CB_TIMEOUT Called when a timeout expires.
0 Timeout ID.