ExplosiveWeaponConfig Class Reference

#include <weapon_cfg.h>

Inheritance diagram for ExplosiveWeaponConfig:

Inheritance graph
[legend]
Collaboration diagram for ExplosiveWeaponConfig:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 50 of file weapon_cfg.h.


Constructor & Destructor Documentation

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]

Definition at line 61 of file weapon_cfg.h.

00061 {};


Member Function Documentation

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:


Member Data Documentation

bool ExplosiveWeaponConfig::allow_change_timeout

Definition at line 54 of file weapon_cfg.h.

double ExplosiveWeaponConfig::blast_force

Definition at line 56 of file weapon_cfg.h.

double ExplosiveWeaponConfig::blast_range

Definition at line 55 of file weapon_cfg.h.

uint ExplosiveWeaponConfig::explosion_range

Definition at line 57 of file weapon_cfg.h.

uint ExplosiveWeaponConfig::particle_range

Definition at line 58 of file weapon_cfg.h.

uint ExplosiveWeaponConfig::timeout

Definition at line 53 of file weapon_cfg.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 1 13:45:23 2007 for Wormux by  doxygen 1.4.7