#include <Simulation/Simulation.h>
Public Types | |
| enum | State { SIMULATION_STOPPED, SIMULATION_RUNNING } |
| just a type for whether or not we're running the simulation now or not. Enums are nice | |
Public Member Functions | |
| Simulation (const ConStruct &init) | |
| Builds a Simulation object. | |
| ~Simulation () | |
| Simulator destructor. Delete everything. | |
| void | TimeSlice (const double ms) |
| Do one Epsilon time slice. | |
| void | Render (const IO_Window *win) |
| Render the world. | |
| void | Update (IO_Window *win) |
| Basically deals user input for a window. | |
| void | OnPress (IO_Window *win, const IO_Key &k) |
| Handles key presses. | |
| void | OnRelease (IO_Window *win, const IO_Key &k) |
| Handles key presses. | |
| const Roadmap * | getRoadmap (const int i) const |
| returns the roadmap of the given index. | |
| void | SetCamera (const Camera *cam) |
| Set's which camera we're using for rendering the display right now. | |
| const Camera * | GetCamera () const |
| get's the camera that we're using for rendering the display right now | |
Public Attributes | |
| bool | wireframe |
| whether to render wireframe or not | |
| bool | show_fps |
| whether to show the frames per second or not | |
Friends | |
| class | SimulationFactory |
Classes | |
| class | SimulationFactory |
| Class to be overloaded for building your workspace, the robot in it (arbitrator) and the path for it too follow. | |
|
|
Builds a Simulation object.
|
|
|
get's the camera that we're using for rendering the display right now
|
|
|
returns the roadmap of the given index.
|
|
||||||||||||
|
Handles key presses.
|
|
||||||||||||
|
Handles key presses.
|
|
|
Render the world.
|
|
|
Do one Epsilon time slice.
|
|
|
Basically deals user input for a window.
|
1.4.3-20050530