MercuryODEObject Class Reference

Base object that can be stuck in an ODE world. More...

#include <MercuryODE.h>

Inheritance diagram for MercuryODEObject:

Inheritance graph
[legend]
Collaboration diagram for MercuryODEObject:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MercuryODEObject ()
virtual ~MercuryODEObject ()
virtual bool Collide (MercuryODEObject *pHit, dContact &pContact, MercuryODEWorld *pWorld)=0
 Collide into another object (if you want to, return true).
PSElement GetParameter (const MString &sName)
void SetParameter (const MString &sName, const PSElement &pSet)
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.
 CLASS_RTTI (MercuryODEObject, MercuryObject)
virtual void RemoveODE ()

Public Attributes

dMass m_oAccumulatedMass
 The Object's accumulated mass (0 if unused).
dBodyID m_oBody
 The Object's ODE associated body (0 if unused).
dSpaceID m_oSpace
 Inner Object's space (this is a little tricky and generally shouldn't be used).
MercuryODEWorldm_pWorld

Protected Attributes

bool m_wasActive

Private Attributes

std::map< MString, PSElementm_mParameters

Detailed Description

Base object that can be stuck in an ODE world.

Definition at line 11 of file MercuryODE.h.


Constructor & Destructor Documentation

MercuryODEObject::MercuryODEObject (  ) 

Definition at line 15 of file MercuryODE.cpp.

MercuryODEObject::~MercuryODEObject (  )  [virtual]

Definition at line 23 of file MercuryODE.cpp.


Member Function Documentation

virtual bool MercuryODEObject::Collide ( MercuryODEObject pHit,
dContact &  pContact,
MercuryODEWorld pWorld 
) [pure virtual]

Collide into another object (if you want to, return true).

Implemented in BetaBetaMari, ExplodingCokeCan, MercuryODEObjectLoadable, ODEFluid, Projectile, VirtualProjectile, and RaceCar.

PSElement MercuryODEObject::GetParameter ( const MString sName  )  [inline]

Definition at line 27 of file MercuryODE.h.

void MercuryODEObject::SetParameter ( const MString sName,
const PSElement pSet 
) [inline]

Definition at line 28 of file MercuryODE.h.

virtual void MercuryODEObject::PreCycleUpdate ( const float  dTime  )  [inline, virtual]

Pre-cycle update, this occurs before the ODE world step, and includes how long the step time will be.

Reimplemented in ODEFluid, and RaceCar.

Definition at line 31 of file MercuryODE.h.

MercuryODEObject::CLASS_RTTI ( MercuryODEObject  ,
MercuryObject   
)

void MercuryODEObject::RemoveODE (  )  [virtual]

Reimplemented in MercuryODEObjectLoadable.

Definition at line 30 of file MercuryODE.cpp.


Member Data Documentation

dMass MercuryODEObject::m_oAccumulatedMass

The Object's accumulated mass (0 if unused).

Definition at line 21 of file MercuryODE.h.

dBodyID MercuryODEObject::m_oBody

The Object's ODE associated body (0 if unused).

Definition at line 23 of file MercuryODE.h.

dSpaceID MercuryODEObject::m_oSpace

Inner Object's space (this is a little tricky and generally shouldn't be used).

Definition at line 25 of file MercuryODE.h.

MercuryODEWorld* MercuryODEObject::m_pWorld

Definition at line 36 of file MercuryODE.h.

bool MercuryODEObject::m_wasActive [protected]

Definition at line 38 of file MercuryODE.h.

std::map< MString, PSElement > MercuryODEObject::m_mParameters [private]

Definition at line 40 of file MercuryODE.h.


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