#include <robbase.h>
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 |
However, a Program can play in multiple simulations. The program is loaded using its ProgramLoader.
|
|
Initializes the program loader. Loads headers immediately, banks only on request. |
|
||||||||||||
|
Initializes sim and vars; MUST be called before each sim.
|