#include <projectile.h>
Inherits WorldEntity.
Inheritance diagram for Projectile:


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 | |
| Player * | mOwner |
| 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. | |
Definition at line 12 of file projectile.h.
|
|
Definition at line 8 of file projectile.cpp. References cProjectile, and CommonEntity::mType. |
|
|
Definition at line 14 of file projectile.cpp. |
|
|
Initializes Projectile according to its ID in params.
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: ![]() |
|
|
Inits mOwner field.
Definition at line 35 of file projectile.cpp. References gApp, Application::getGameCommon(), Game::getPlayer(), and mOwner. Here is the call graph for this function: ![]() |
|
|
Damage that causes this projectile.
Definition at line 33 of file projectile.h. Referenced by initByID(). |
|
|
Player who owns this projectile. We need to know who add a frag :-).
Definition at line 32 of file projectile.h. Referenced by initSpecific(). |
|
|
Tells whether the projectile ignores armour.
Definition at line 34 of file projectile.h. Referenced by initByID(). |
|
|
What is the damage radius in case of impact.
Definition at line 35 of file projectile.h. Referenced by initByID(). |
1.4.5