#include <RaceCar.h>
Inheritance diagram for RaceCar:
Public Member Functions | |
RaceCar () | |
RaceCar (const MString &sName) | |
~RaceCar () | |
virtual void | Init () |
virtual void | PreCycleUpdate (const float dTime) |
Pre-cycle update, this occurs before the ODE world step, and includes how long the step time will be. | |
virtual bool | Collide (MercuryODEObject *pHit, dContact &pContact, MercuryODEWorld *pWorld) |
Collide into another object (if you want to, return true). | |
virtual bool | LoadFromINI (MercuryINI &pINI, const MString &sShapeName, const dWorldID &oWorld) |
Load this object from the INI file. | |
virtual void | Message (int Message, PStack &data, const MString &name) |
Receive message (When subscribing to messages, you receive them via this command). | |
CLASS_RTTI (RaceCar, MercuryODEObjectLoadable) | |
void | ChangeTopSpeed (float fSpeed) |
void | ChangeSteer (float fSteer) |
float | GetSteer () |
void | SetBreak (bool bBreak) |
Private Attributes | |
float | m_fSpeed |
float | m_fSteer |
bool | m_bBreaking |
MercuryODEObjectLoadable * | oWheels [4] |
MercuryODEObjectLoadable * | oCarBody |
dJointID | m_Wheel [4] |
Definition at line 6 of file RaceCar.h.
RaceCar::~RaceCar | ( | ) |
void RaceCar::Init | ( | ) | [virtual] |
void RaceCar::PreCycleUpdate | ( | const float | dTime | ) | [virtual] |
Pre-cycle update, this occurs before the ODE world step, and includes how long the step time will be.
Reimplemented from MercuryODEObject.
Definition at line 78 of file RaceCar.cpp.
bool RaceCar::Collide | ( | MercuryODEObject * | pHit, | |
dContact & | pContact, | |||
MercuryODEWorld * | pWorld | |||
) | [virtual] |
Collide into another object (if you want to, return true).
Reimplemented from MercuryODEObjectLoadable.
Definition at line 119 of file RaceCar.cpp.
bool RaceCar::LoadFromINI | ( | MercuryINI & | pINI, | |
const MString & | sShapeName, | |||
const dWorldID & | oWorld | |||
) | [virtual] |
Load this object from the INI file.
See how many pieces this object has.
Reimplemented from MercuryODEObjectLoadable.
Definition at line 14 of file RaceCar.cpp.
Receive message (When subscribing to messages, you receive them via this command).
Reimplemented from MercuryMessageHandler.
Definition at line 126 of file RaceCar.cpp.
RaceCar::CLASS_RTTI | ( | RaceCar | , | |
MercuryODEObjectLoadable | ||||
) |
float RaceCar::m_fSpeed [private] |
float RaceCar::m_fSteer [private] |
bool RaceCar::m_bBreaking [private] |
MercuryODEObjectLoadable* RaceCar::oWheels[4] [private] |
MercuryODEObjectLoadable* RaceCar::oCarBody [private] |
dJointID RaceCar::m_Wheel[4] [private] |