Projectile Class Reference

#include <ODEProjectile.h>

Inheritance diagram for Projectile:

Inheritance graph
[legend]
Collaboration diagram for Projectile:

Collaboration graph
[legend]
List of all members.

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
MercuryObjectm_pToNotify
MString m_sMessage
MercuryShape m_shpTracer

Detailed Description

Definition at line 7 of file ODEProjectile.h.


Constructor & Destructor Documentation

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 (  ) 


Member Function Documentation

void Projectile::Init (  )  [virtual]

Reimplemented from MercuryObject.

Definition at line 11 of file ODEProjectile.cpp.

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.

void Projectile::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 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   
)


Member Data Documentation

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.


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