#include <ODEProjectile.h>
Inheritance diagram for Projectile:
Public Member Functions | |
Projectile () | |
Projectile (const MString &sName) | |
~Projectile () | |
virtual void | Init () |
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). | |
virtual void | Update (const float dTime) |
[internal] Update (call this update last when abstracting because Update can destroy the object) | |
void | NotifyClass (MercuryObject *pToNotify, const MString &sMessage) |
void | EnableForShot (dSpaceID sID, float fLength, const MercuryPoint &pCenter, const MercuryPoint &pDirection) |
void | Disable () |
CLASS_RTTI (Projectile, MercuryODEObjectLoadable) | |
Private Attributes | |
dGeomID | m_pRay |
MercuryObject * | m_pToNotify |
MString | m_sMessage |
MercuryShape | m_shpTracer |
Definition at line 7 of file ODEProjectile.h.
Projectile::Projectile | ( | ) | [inline] |
Definition at line 10 of file ODEProjectile.h.
Projectile::Projectile | ( | const MString & | sName | ) | [inline] |
Definition at line 11 of file ODEProjectile.h.
Projectile::~Projectile | ( | ) |
void Projectile::Init | ( | ) | [virtual] |
bool Projectile::Collide | ( | MercuryODEObject * | pHit, | |
dContact & | pContact, | |||
MercuryODEWorld * | pWorld | |||
) | [virtual] |
Collide into another object (if you want to, return true).
Reimplemented from MercuryODEObjectLoadable.
Definition at line 35 of file ODEProjectile.cpp.
Receive message (When subscribing to messages, you receive them via this command).
Reimplemented from MercuryMessageHandler.
Definition at line 55 of file ODEProjectile.cpp.
void Projectile::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 30 of file ODEProjectile.cpp.
void Projectile::NotifyClass | ( | MercuryObject * | pToNotify, | |
const MString & | sMessage | |||
) | [inline] |
Definition at line 18 of file ODEProjectile.h.
void Projectile::EnableForShot | ( | dSpaceID | sID, | |
float | fLength, | |||
const MercuryPoint & | pCenter, | |||
const MercuryPoint & | pDirection | |||
) |
Definition at line 60 of file ODEProjectile.cpp.
void Projectile::Disable | ( | ) |
Definition at line 91 of file ODEProjectile.cpp.
Projectile::CLASS_RTTI | ( | Projectile | , | |
MercuryODEObjectLoadable | ||||
) |
dGeomID Projectile::m_pRay [private] |
Definition at line 23 of file ODEProjectile.h.
MercuryObject* Projectile::m_pToNotify [private] |
Definition at line 24 of file ODEProjectile.h.
MString Projectile::m_sMessage [private] |
Definition at line 25 of file ODEProjectile.h.
MercuryShape Projectile::m_shpTracer [private] |
Definition at line 26 of file ODEProjectile.h.