#include <weapon_cfg.h>
Inheritance diagram for ExplosiveWeaponConfig:
Public Member Functions | |
ExplosiveWeaponConfig () | |
virtual | ~ExplosiveWeaponConfig () |
virtual void | LoadXml (xmlpp::Element *elem) |
Public Attributes | |
uint | timeout |
bool | allow_change_timeout |
double | blast_range |
double | blast_force |
uint | explosion_range |
uint | particle_range |
Definition at line 50 of file weapon_cfg.h.
ExplosiveWeaponConfig::ExplosiveWeaponConfig | ( | ) |
Definition at line 41 of file weapon_cfg.cpp.
00042 { 00043 timeout = 0; 00044 allow_change_timeout = false; 00045 explosion_range = 0 ; 00046 particle_range = explosion_range; 00047 blast_range = 0 ; 00048 blast_force = 0 ; 00049 }
virtual ExplosiveWeaponConfig::~ExplosiveWeaponConfig | ( | ) | [inline, virtual] |
void ExplosiveWeaponConfig::LoadXml | ( | xmlpp::Element * | elem | ) | [virtual] |
Reimplemented from WeaponConfig.
Reimplemented in AirAttackConfig, AutomaticBazookaConfig, ClusterBombConfig, MineConfig, and SuperTuxWeaponConfig.
Definition at line 51 of file weapon_cfg.cpp.
00052 { 00053 WeaponConfig::LoadXml (elem); 00054 XmlReader::ReadUint(elem, "timeout", timeout); 00055 XmlReader::ReadBool(elem, "allow_change_timeout", allow_change_timeout); 00056 XmlReader::ReadUint(elem, "explosion_range", explosion_range); 00057 XmlReader::ReadUint(elem, "particle_range", particle_range); 00058 XmlReader::ReadDouble(elem, "blast_range", blast_range); 00059 XmlReader::ReadDouble(elem, "blast_force", blast_force); 00060 }
Here is the call graph for this function:
Here is the caller graph for this function:
Definition at line 54 of file weapon_cfg.h.
Definition at line 56 of file weapon_cfg.h.
Definition at line 55 of file weapon_cfg.h.
Definition at line 57 of file weapon_cfg.h.
Definition at line 58 of file weapon_cfg.h.
Definition at line 53 of file weapon_cfg.h.