#include <params.h>
Collaboration diagram for Params::sProjectileParams:

Public Member Functions | |
| sProjectileParams (bool val=false) | |
| int | getDamage () |
| Return damage done by the projectile. | |
Public Attributes | |
| bool | valid |
| true if structure is valid | |
| int | id |
| must be unique | |
| std::string | name |
| some cool name | |
| std::string | model |
| some cool model | |
| double | speed |
| in m/s | |
| double | weight |
| in kg | |
| int | damage_min |
| minimal damage in HP units | |
| int | damage_max |
| maximal damage in HP units | |
| bool | piercing |
| ignore armor | |
| double | radius |
| int m, may be 0 | |
Definition at line 66 of file params.h.
|
|
Definition at line 68 of file params.h. References valid. |
|
|
Return damage done by the projectile. Please not that this function may return different values in every call.
Definition at line 89 of file params.h. References damage_max, damage_min, and Params::projectile(). Referenced by Projectile::initByID(). Here is the call graph for this function: ![]() |
|
|
maximal damage in HP units
Definition at line 77 of file params.h. Referenced by getDamage(). |
|
|
minimal damage in HP units
Definition at line 76 of file params.h. Referenced by getDamage(). |
|
|
must be unique
Definition at line 71 of file params.h. Referenced by Projectile::initByID(). |
|
|
some cool model
|
|
|
some cool name
|
|
|
ignore armor
Definition at line 78 of file params.h. Referenced by Projectile::initByID(). |
|
|
int m, may be 0
Definition at line 79 of file params.h. Referenced by Projectile::initByID(). |
|
|
in m/s
Definition at line 74 of file params.h. Referenced by Projectile::initByID(). |
|
|
true if structure is valid
Definition at line 69 of file params.h. Referenced by Params::sBonusParams::sBonusParams(), sProjectileParams(), and Params::sWeaponParams::sWeaponParams(). |
|
|
in kg
Definition at line 75 of file params.h. Referenced by Projectile::initByID(). |
1.4.5