Projectile Class Reference
[Game Data]

Class represents "flying" projectile. More...

#include <projectile.h>

Inherits WorldEntity.

Inheritance diagram for Projectile:

Inheritance graph
[legend]
Collaboration diagram for Projectile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Projectile ()
 ~Projectile ()
void initByID (int params_ID)
 Initializes Projectile according to its ID in params.
bool initSpecific (int shooting_player_id)
 Inits mOwner field.

Private Attributes

PlayermOwner
 Player who owns this projectile. We need to know who add a frag :-).
int mDamage
 Damage that causes this projectile.
bool mPiercing
 Tells whether the projectile ignores armour.
double mRadius
 What is the damage radius in case of impact.

Detailed Description

Class represents "flying" projectile.

Definition at line 12 of file projectile.h.


Constructor & Destructor Documentation

Projectile::Projectile  ) 
 

Definition at line 8 of file projectile.cpp.

References cProjectile, and CommonEntity::mType.

Projectile::~Projectile  ) 
 

Definition at line 14 of file projectile.cpp.


Member Function Documentation

void Projectile::initByID int  params_ID  ) 
 

Initializes Projectile according to its ID in params.

Parameters:
params_ID ID from Params to initialize by.

Definition at line 19 of file projectile.cpp.

References Params::sProjectileParams::getDamage(), gParams, Params::sProjectileParams::id, mDamage, CommonEntity::mOrientation, mPiercing, mRadius, WorldEntity::mSpeed, CommonEntity::mSubType, WorldEntity::mWeight, Params::sProjectileParams::piercing, Params::projectile(), Params::sProjectileParams::radius, Params::sProjectileParams::speed, Params::sProjectileParams::weight, and ZERO_ROTATION_VECTOR.

Here is the call graph for this function:

bool Projectile::initSpecific int  shooting_player_id  ) 
 

Inits mOwner field.

Parameters:
shooting_player_id ID of player that shot this projectile
Returns:
true, if initialisation successfull, false otherwise

Definition at line 35 of file projectile.cpp.

References gApp, Application::getGameCommon(), Game::getPlayer(), and mOwner.

Here is the call graph for this function:


Member Data Documentation

int Projectile::mDamage [private]
 

Damage that causes this projectile.

Definition at line 33 of file projectile.h.

Referenced by initByID().

Player* Projectile::mOwner [private]
 

Player who owns this projectile. We need to know who add a frag :-).

Definition at line 32 of file projectile.h.

Referenced by initSpecific().

bool Projectile::mPiercing [private]
 

Tells whether the projectile ignores armour.

Definition at line 34 of file projectile.h.

Referenced by initByID().

double Projectile::mRadius [private]
 

What is the damage radius in case of impact.

Definition at line 35 of file projectile.h.

Referenced by initByID().


The documentation for this class was generated from the following files:
Generated on Wed Apr 12 14:20:53 2006 for bjs by  doxygen 1.4.5