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

rt::Program Class Reference

One of the players on the field. More...

#include <robbase.h>

List of all members.

Public Methods

const lrt::Vector< Bank * > & getBanks ()
 loads banks if not done, and returns them.

lrt::String print ()
 Program (ProgramLoader *loader)
 Initializes the program loader. More...

void init (rint num, Simulation *sim)
 Initializes sim and vars; MUST be called before each sim. More...

ProgramLoader * getLoader ()
 Gets the loader for this program.

 ~Program ()
 deletes the loader.


Static Public Methods

ProgramLoader * getLoader (const lrt::String &file)
Program * create (const lrt::String &file, const Globals &glob, int globalNum)

Public Attributes

Simulation * sim
rint vars [progVarLength]
lrt::StringMap< HeaderField > headers
int programNum
 index in Sim::programs.

int globalNum
 index in the TourResults.

Bank * emptyBank
 the empty bank belonging to this program.


Static Public Attributes

lrt::Vector< ProgramLoader * > exampleLoaders


Detailed Description

One of the players on the field.

However, a Program can play in multiple simulations. The program is loaded using its ProgramLoader.


Constructor & Destructor Documentation

rt::Program::Program (  ProgramLoader *    loader ) 
 

Initializes the program loader.

Loads headers immediately, banks only on request.


Member Function Documentation

void rt::Program::init (  rint    num,
Simulation *    sim
) 
 

Initializes sim and vars; MUST be called before each sim.

Parameters:
num  The program's number (index in Sim::programs) in the current sim.


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