#include <ExplodingCokeCan.h>
Inheritance diagram for ExplodingCokeCan:
Public Member Functions | |
ExplodingCokeCan () | |
ExplodingCokeCan (const MString &sName) | |
~ExplodingCokeCan () | |
virtual void | Init () |
virtual void | Update (const float dTime) |
[internal] Update (call this update last when abstracting because Update can destroy the object) | |
virtual bool | Collide (MercuryODEObject *pHit, dContact &pContact, MercuryODEWorld *pWorld) |
Collide into another object (if you want to, return true). | |
virtual void | Message (int Message, PStack &data, const MString &name) |
Receive message (When subscribing to messages, you receive them via this command). | |
CLASS_RTTI (ExplodingCokeCan, MercuryODEObjectLoadable) | |
Private Attributes | |
dGeomID | m_pSph |
float | m_fHealth |
bool | m_bDestroyed |
Definition at line 6 of file ExplodingCokeCan.h.
ExplodingCokeCan::ExplodingCokeCan | ( | ) | [inline] |
Definition at line 9 of file ExplodingCokeCan.h.
ExplodingCokeCan::ExplodingCokeCan | ( | const MString & | sName | ) | [inline] |
Definition at line 13 of file ExplodingCokeCan.h.
ExplodingCokeCan::~ExplodingCokeCan | ( | ) |
void ExplodingCokeCan::Init | ( | ) | [virtual] |
void ExplodingCokeCan::Update | ( | const float | dTime | ) | [virtual] |
[internal] Update (call this update last when abstracting because Update can destroy the object)
Reimplemented from MercuryODEObjectLoadable.
Definition at line 31 of file ExplodingCokeCan.cpp.
bool ExplodingCokeCan::Collide | ( | MercuryODEObject * | pHit, | |
dContact & | pContact, | |||
MercuryODEWorld * | pWorld | |||
) | [virtual] |
Collide into another object (if you want to, return true).
Reimplemented from MercuryODEObjectLoadable.
Definition at line 37 of file ExplodingCokeCan.cpp.
Receive message (When subscribing to messages, you receive them via this command).
Reimplemented from MercuryMessageHandler.
Definition at line 135 of file ExplodingCokeCan.cpp.
ExplodingCokeCan::CLASS_RTTI | ( | ExplodingCokeCan | , | |
MercuryODEObjectLoadable | ||||
) |
dGeomID ExplodingCokeCan::m_pSph [private] |
Definition at line 26 of file ExplodingCokeCan.h.
float ExplodingCokeCan::m_fHealth [private] |
Definition at line 27 of file ExplodingCokeCan.h.
bool ExplodingCokeCan::m_bDestroyed [private] |
Definition at line 28 of file ExplodingCokeCan.h.