Params::sProjectileParams Struct Reference

Projectile parameters. More...

#include <params.h>

Collaboration diagram for Params::sProjectileParams:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Projectile parameters.

Definition at line 66 of file params.h.


Constructor & Destructor Documentation

Params::sProjectileParams::sProjectileParams bool  val = false  )  [inline]
 

Definition at line 68 of file params.h.

References valid.


Member Function Documentation

int Params::sProjectileParams::getDamage  )  [inline]
 

Return damage done by the projectile.

Please not that this function may return different values in every call.

Returns:
Damage done by the projectile

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:


Member Data Documentation

int Params::sProjectileParams::damage_max
 

maximal damage in HP units

Definition at line 77 of file params.h.

Referenced by getDamage().

int Params::sProjectileParams::damage_min
 

minimal damage in HP units

Definition at line 76 of file params.h.

Referenced by getDamage().

int Params::sProjectileParams::id
 

must be unique

Definition at line 71 of file params.h.

Referenced by Projectile::initByID().

std::string Params::sProjectileParams::model
 

some cool model

Definition at line 73 of file params.h.

std::string Params::sProjectileParams::name
 

some cool name

Definition at line 72 of file params.h.

bool Params::sProjectileParams::piercing
 

ignore armor

Definition at line 78 of file params.h.

Referenced by Projectile::initByID().

double Params::sProjectileParams::radius
 

int m, may be 0

Definition at line 79 of file params.h.

Referenced by Projectile::initByID().

double Params::sProjectileParams::speed
 

in m/s

Definition at line 74 of file params.h.

Referenced by Projectile::initByID().

bool Params::sProjectileParams::valid
 

true if structure is valid

Definition at line 69 of file params.h.

Referenced by Params::sBonusParams::sBonusParams(), sProjectileParams(), and Params::sWeaponParams::sWeaponParams().

double Params::sProjectileParams::weight
 

in kg

Definition at line 75 of file params.h.

Referenced by Projectile::initByID().


The documentation for this struct was generated from the following file:
Generated on Wed Apr 12 14:20:36 2006 for bjs by  doxygen 1.4.5