Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

rt::Bot Class Reference

A robot on the field. More...

#include <robbase.h>

List of all members.

Public Methods

 Bot (rint instrSet, rint numBanks, rint mobile, rint posX, rint posY, rint dir, rint generation, Program *owner)
 appends itself to sim->bots and puts itself into sim->field.

 ~Bot ()
 removes itself from sim->field. It has to be removed from sim->bots however.

ExecReturnType exec ()

Public Attributes

Program * owner
rint vars [botVarLength]
 named vars (e.g. ACTIVE).

rint * stdVars
 unnamed vars (e.g. #1). Note! Size must be numUnnamedVars+1!

lrt::Array< Bank * > banks
lrt::Vector< Task * > tasks
rint curTask
int creationCycle
 when was the bot created?

int deactCycle
 latest deactivation of the bot, or 0 if never deactivated.


Detailed Description

A robot on the field.


The documentation for this class was generated from the following files:
This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer