CBullet Class Reference

Bullet class. More...

#include <class.weapon.hh>

Inheritance diagram for CBullet:

Inheritance graph
[legend]
Collaboration diagram for CBullet:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CBullet (CSprite *pSprite, bool bTravelLeft)
CBulletCastToBullet ()
 Cast to bullet class.
bool Interact (CObject *pObj)
 Interact (check if the bullet hit something).
int GetFirePower ()
 Get the bullet's firepower.
bool UpdateMovement (Uint8 *, Uint32 iDeltaTime, int iCollisionStatus)
 Update object movement.

Public Attributes

bool mbTravelLeft


Detailed Description

Bullet class.

Constructor & Destructor Documentation

CBullet::CBullet ( CSprite pSprite,
bool  bTravelLeft 
)


Member Function Documentation

CBullet * CBullet::CastToBullet (  )  [virtual]

Cast to bullet class.

Reimplemented from CObject.

bool CBullet::Interact ( CObject pObj  )  [virtual]

Interact (check if the bullet hit something).

Reimplemented from CObject.

int CBullet::GetFirePower (  ) 

Get the bullet's firepower.

bool CBullet::UpdateMovement ( Uint8 *  ,
Uint32  iDeltaTime,
int  iCollisionStatus 
) [virtual]

Update object movement.

Reimplemented from CObject.


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Fri Feb 22 09:36:52 2008 for Mega Maryo by  doxygen 1.5.5