WeaponConfig Class Reference

#include <weapon_cfg.h>

Inheritance diagram for WeaponConfig:

Inheritance graph
[legend]
Collaboration diagram for WeaponConfig:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WeaponConfig ()
virtual ~WeaponConfig ()
virtual void LoadXml (xmlpp::Element *elem)

Public Attributes

uint damage

Detailed Description

Definition at line 38 of file weapon_cfg.h.


Constructor & Destructor Documentation

WeaponConfig::WeaponConfig (  ) 

Definition at line 31 of file weapon_cfg.cpp.

00032 { damage = 10; }

virtual WeaponConfig::~WeaponConfig (  )  [inline, virtual]

Definition at line 44 of file weapon_cfg.h.

00044 {};


Member Function Documentation

void WeaponConfig::LoadXml ( xmlpp::Element *  elem  )  [virtual]

Implements EmptyWeaponConfig.

Reimplemented in AirAttackConfig, AirhammerConfig, AutomaticBazookaConfig, BaseballConfig, BlowtorchConfig, ClusterBombConfig, MineConfig, ParachuteConfig, SuperTuxWeaponConfig, SyringeConfig, and ExplosiveWeaponConfig.

Definition at line 34 of file weapon_cfg.cpp.

00035 {
00036   XmlReader::ReadUint(elem, "damage", damage);  
00037 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

uint WeaponConfig::damage

Reimplemented in AirhammerConfig, and SyringeConfig.

Definition at line 41 of file weapon_cfg.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 1 14:30:31 2007 for Wormux by  doxygen 1.4.7