#include <params.h>
Public Types | |
| typedef Params::sTankParams | sTankParams |
| Tank parameters. | |
| typedef Params::sProjectileParams | sProjectileParams |
| Projectile parameters. | |
| typedef Params::sWeaponParams | sWeaponParams |
| Weapon parameters. | |
| typedef Params::sBonusParams | sBonusParams |
| Bonus parameters. | |
Public Member Functions | |
| Params () | |
| ~Params () | |
| void | load () |
| Load parameters for everything :-). | |
| sTankParams & | tank (int id) |
| find params for tank ID. | |
| sProjectileParams & | projectile (int id) |
| find params for projectile ID. | |
| sWeaponParams & | weapon (int id) |
| find params for weapon ID. | |
| sBonusParams & | bonus (int id) |
| find params for weapon ID. | |
Public Attributes | |
| std::vector< sTankParams > | mTanks |
| Parameters of all tanks types. | |
| std::vector< sProjectileParams > | mProjectiles |
| Parameters of all projectiles types. | |
| std::vector< sWeaponParams > | mWeapons |
| Parameters of all weapons types. | |
| std::vector< sBonusParams > | mBonus |
| Parameters of all weapons types. | |
Classes | |
| struct | sBonusParams |
| Bonus parameters. More... | |
| struct | sProjectileParams |
| Projectile parameters. More... | |
| struct | sTankParams |
| Tank parameters. More... | |
| struct | sWeaponParams |
| Weapon parameters. More... | |
It is inicialized in Application
Definition at line 16 of file params.h.
|
|
Bonus parameters.
|
|
|
Projectile parameters.
|
|
|
Tank parameters.
|
|
|
Weapon parameters.
|
|
|
Definition at line 16 of file params.cpp. |
|
|
Definition at line 21 of file params.cpp. |
|
|
find params for weapon ID.
Definition at line 212 of file params.cpp. References DIE(), LOGE, and mBonus. Here is the call graph for this function: ![]() |
|
|
Load parameters for everything :-). Die on error. Definition at line 76 of file params.cpp. References INSERT_TMP_TO, LOAD_DOUBLE, LOAD_INT, LOAD_STRING, mTanks, TiXmlNode::NextSiblingElement(), OPEN_FILE, and TIN. Referenced by Application::initBasicSubsystems(). Here is the call graph for this function: ![]() |
|
|
find params for projectile ID.
Definition at line 188 of file params.cpp. References DIE(), LOGE, and mProjectiles. Referenced by Params::sProjectileParams::getDamage(), and Projectile::initByID(). Here is the call graph for this function: ![]() |
|
|
find params for tank ID.
Definition at line 176 of file params.cpp. Referenced by Tank::initByID(). Here is the call graph for this function: ![]() |
|
|
find params for weapon ID.
Definition at line 200 of file params.cpp. References DIE(), LOGE, and mWeapons. Here is the call graph for this function: ![]() |
|
|
Parameters of all weapons types.
Definition at line 178 of file params.h. Referenced by bonus(). |
|
|
Parameters of all projectiles types.
Definition at line 106 of file params.h. Referenced by projectile(). |
|
|
Parameters of all tanks types.
Definition at line 59 of file params.h. Referenced by load(). |
|
|
Parameters of all weapons types.
Definition at line 134 of file params.h. Referenced by weapon(). |
1.4.5