RaceCar Class Reference

#include <RaceCar.h>

Inheritance diagram for RaceCar:

Inheritance graph
[legend]
Collaboration diagram for RaceCar:

Collaboration graph
[legend]
List of all members.

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
MercuryODEObjectLoadableoWheels [4]
MercuryODEObjectLoadableoCarBody
dJointID m_Wheel [4]

Detailed Description

Definition at line 6 of file RaceCar.h.


Constructor & Destructor Documentation

RaceCar::RaceCar (  )  [inline]

Definition at line 9 of file RaceCar.h.

RaceCar::RaceCar ( const MString sName  )  [inline]

Definition at line 11 of file RaceCar.h.

RaceCar::~RaceCar (  ) 


Member Function Documentation

void RaceCar::Init (  )  [virtual]

Reimplemented from MercuryObject.

Definition at line 9 of file RaceCar.cpp.

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.

void RaceCar::Message ( int  Message,
PStack data,
const MString name 
) [virtual]

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   
)

void RaceCar::ChangeTopSpeed ( float  fSpeed  )  [inline]

Definition at line 22 of file RaceCar.h.

void RaceCar::ChangeSteer ( float  fSteer  )  [inline]

Definition at line 23 of file RaceCar.h.

float RaceCar::GetSteer (  )  [inline]

Definition at line 24 of file RaceCar.h.

void RaceCar::SetBreak ( bool  bBreak  )  [inline]

Definition at line 25 of file RaceCar.h.


Member Data Documentation

float RaceCar::m_fSpeed [private]

Definition at line 27 of file RaceCar.h.

float RaceCar::m_fSteer [private]

Definition at line 28 of file RaceCar.h.

bool RaceCar::m_bBreaking [private]

Definition at line 29 of file RaceCar.h.

MercuryODEObjectLoadable* RaceCar::oWheels[4] [private]

Definition at line 30 of file RaceCar.h.

MercuryODEObjectLoadable* RaceCar::oCarBody [private]

Definition at line 31 of file RaceCar.h.

dJointID RaceCar::m_Wheel[4] [private]

Definition at line 32 of file RaceCar.h.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo