#include <World.h>
Public Member Functions | |
World (const Track::Track &track) | |
virtual | ~World () |
void | update (unsigned int milliseconds_elapsed) |
btDiscreteDynamicsWorld & | get_dynamics_world () |
void | add_tick_observer (TickObserver *observer) |
void | remove_tick_observer (TickObserver *observer) |
btCollisionWorld & | get_floor_world () |
Get the world containing only the floors you can drive on. | |
void | add_replay_report (const InputReport &report) |
Record an input report in order to create a replay. | |
void | write_replay_events (std::ostream &stream) |
Write the events that have occured to a stream for use as a replay. | |
unsigned long int | get_tick_number () |
Get the number of physics ticks simulated. | |
const Track::Track & | get_track () |
Get a reference to the track being simulated. | |
Private Member Functions | |
World & | operator= (const World &world) |
World (const World &world) | |
Private Attributes | |
const Track::Track & | m_track |
btAxisSweep3 * | broadphase |
btAxisSweep3 * | floor_broadphase |
btDefaultCollisionConfiguration * | collisionConfiguration |
btDefaultCollisionConfiguration * | floor_collision_configuration |
btCollisionDispatcher * | dispatcher |
btCollisionDispatcher * | floor_dispatcher |
btSequentialImpulseConstraintSolver * | solver |
btDiscreteDynamicsWorld * | dynamicsWorld |
Main world for physics simulation. | |
btCollisionWorld * | floor_world |
world containing just the surfaces you can drive on. | |
std::set< TickObserver * > | observers |
int | milliseconds_remaining |
std::vector< ReplayEvent > | replay_events |
replay data | |
unsigned long int | tick_number |
The current tick number. | |
Classes | |
struct | ReplayEvent |
An event recorded for the replay. More... |
Definition at line 32 of file World.h.
Engine::Physics::World::World | ( | const World & | world | ) | [private] |
Engine::Physics::World::World | ( | const Track::Track & | track | ) |
void Engine::Physics::World::add_replay_report | ( | const InputReport & | report | ) |
void Engine::Physics::World::add_tick_observer | ( | TickObserver * | observer | ) |
btDiscreteDynamicsWorld & Engine::Physics::World::get_dynamics_world | ( | ) |
btCollisionWorld & Engine::Physics::World::get_floor_world | ( | ) |
unsigned long int Engine::Physics::World::get_tick_number | ( | ) |
const Track::Track & Engine::Physics::World::get_track | ( | ) |
void Engine::Physics::World::remove_tick_observer | ( | TickObserver * | observer | ) |
void Engine::Physics::World::update | ( | unsigned int | milliseconds_elapsed | ) |
void Engine::Physics::World::write_replay_events | ( | std::ostream & | stream | ) |
Write the events that have occured to a stream for use as a replay.
The stream should already have data written to it tht identifies the scene and players. This just records input device presses since the scene has started, along with the tick number of each event.
stream | The stream to write the data to. |
btAxisSweep3* Engine::Physics::World::broadphase [private] |
btDefaultCollisionConfiguration* Engine::Physics::World::collisionConfiguration [private] |
btCollisionDispatcher* Engine::Physics::World::dispatcher [private] |
btDiscreteDynamicsWorld* Engine::Physics::World::dynamicsWorld [private] |
btAxisSweep3* Engine::Physics::World::floor_broadphase [private] |
btDefaultCollisionConfiguration* Engine::Physics::World::floor_collision_configuration [private] |
btCollisionDispatcher* Engine::Physics::World::floor_dispatcher [private] |
btCollisionWorld* Engine::Physics::World::floor_world [private] |
const Track::Track& Engine::Physics::World::m_track [private] |
int Engine::Physics::World::milliseconds_remaining [private] |
std::set<TickObserver *> Engine::Physics::World::observers [private] |
std::vector<ReplayEvent> Engine::Physics::World::replay_events [private] |
btSequentialImpulseConstraintSolver* Engine::Physics::World::solver [private] |
unsigned long int Engine::Physics::World::tick_number [private] |
Generated at Mon Sep 6 00:41:17 2010 by Doxygen version 1.4.7 for Racer version svn335.