MineConfig Class Reference

#include <mine.h>

Inheritance diagram for MineConfig:

Inheritance graph
[legend]
Collaboration diagram for MineConfig:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void LoadXml (xmlpp::Element *elem)

Static Public Member Functions

static MineConfigGetInstance ()

Public Attributes

uint escape_time
double detection_range

Private Member Functions

 MineConfig ()

Static Private Attributes

static MineConfigsingleton = NULL

Detailed Description

Definition at line 67 of file mine.h.


Constructor & Destructor Documentation

MineConfig::MineConfig (  )  [private]

Definition at line 221 of file mine.cpp.

00222 {
00223   detection_range= 1;
00224   timeout = 3;
00225   escape_time = 2;
00226 }

Here is the caller graph for this function:


Member Function Documentation

MineConfig * MineConfig::GetInstance (  )  [static]

Definition at line 172 of file mine.cpp.

00173 {
00174   if (singleton == NULL) {
00175     singleton = new MineConfig();
00176   }
00177   return singleton;
00178 }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from ExplosiveWeaponConfig.

Definition at line 228 of file mine.cpp.

00229 {
00230   ExplosiveWeaponConfig::LoadXml (elem);
00231   XmlReader::ReadUint(elem, "escape_time", escape_time);
00232   XmlReader::ReadDouble(elem, "detection_range", detection_range);
00233 }

Here is the call graph for this function:


Member Data Documentation

double MineConfig::detection_range

Definition at line 73 of file mine.h.

uint MineConfig::escape_time

Definition at line 72 of file mine.h.

MineConfig * MineConfig::singleton = NULL [static, private]

Definition at line 70 of file mine.h.


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