Params::sTankParams Struct Reference

Tank parameters. More...

#include <params.h>

Collaboration diagram for Params::sTankParams:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 sTankParams (bool val=false)

Public Attributes

bool valid
 true if structure is valid
int id
 must be unique
std::string name
 some nice fantasy name to display
double max_speed
 in m/s
int engine_power
 in watt
int hp
 1 HP == HP of one human
int armor
 in percents
int turning
 ability to turn - in degrees per second
double weight
 int kg. Double because of weight of projectiles
std::string model
 (file) (collision model will be generated on the fly)

Detailed Description

Tank parameters.

Definition at line 34 of file params.h.


Constructor & Destructor Documentation

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

Definition at line 36 of file params.h.

References valid.


Member Data Documentation

int Params::sTankParams::armor
 

in percents

Definition at line 44 of file params.h.

Referenced by Tank::initByID().

int Params::sTankParams::engine_power
 

in watt

Definition at line 42 of file params.h.

Referenced by Tank::initByID().

int Params::sTankParams::hp
 

1 HP == HP of one human

Definition at line 43 of file params.h.

Referenced by Tank::initByID().

int Params::sTankParams::id
 

must be unique

Definition at line 39 of file params.h.

Referenced by Tank::initByID().

double Params::sTankParams::max_speed
 

in m/s

Definition at line 41 of file params.h.

Referenced by Tank::initByID().

std::string Params::sTankParams::model
 

(file) (collision model will be generated on the fly)

Definition at line 47 of file params.h.

std::string Params::sTankParams::name
 

some nice fantasy name to display

Definition at line 40 of file params.h.

int Params::sTankParams::turning
 

ability to turn - in degrees per second

Definition at line 45 of file params.h.

Referenced by Tank::initByID().

bool Params::sTankParams::valid
 

true if structure is valid

Definition at line 37 of file params.h.

Referenced by sTankParams().

double Params::sTankParams::weight
 

int kg. Double because of weight of projectiles

Definition at line 46 of file params.h.

Referenced by Tank::initByID().


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