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

rt::Task Class Reference

One task in a robot. More...

#include <robbase.h>

List of all members.

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


Detailed Description

One task in a robot.

Each robot always has at least one task running, but can have more with some option sets.


Constructor & Destructor Documentation

rt::Task::Task (  Bot *    bot,
Task *    creator,
rint    dir
) 
 

adds itself to bot->tasks.

Parameters:
creator  The creator task, which will not be overwritten by this task. Can be 0.


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