MapManager Class Reference

#include <mapmanager.hpp>

List of all members.


Detailed Description

MapManager loads/unloads maps.

Definition at line 42 of file mapmanager.hpp.

Public Types

typedef std::map< unsigned
short, LoadedMap
Maps

Public Member Functions

 MapManager (std::string const &)
 Constructor (loads map reference file).
MapgetMap (int)
 Returns the requested map.
std::string getMapName (int) const
 Returns the requested map name.
Maps const & getMaps () const
 Returns all the maps.
void raiseActive (int)
 Sets the activity status of the map.
bool isActive (int) const
 Gets the activity status of the map.
 ~MapManager ()
 Destructor.

Private Attributes

Maps maps


Member Typedef Documentation

typedef std::map< unsigned short, LoadedMap > MapManager::Maps
 

Definition at line 45 of file mapmanager.hpp.


Constructor & Destructor Documentation

MapManager::MapManager std::string const &   ) 
 

Constructor (loads map reference file).

Definition at line 33 of file mapmanager.cpp.

MapManager::~MapManager  ) 
 

Destructor.

Definition at line 83 of file mapmanager.cpp.


Member Function Documentation

Map * MapManager::getMap int   ) 
 

Returns the requested map.

Definition at line 91 of file mapmanager.cpp.

std::string MapManager::getMapName int   )  const
 

Returns the requested map name.

Definition at line 111 of file mapmanager.cpp.

Maps const& MapManager::getMaps  )  const [inline]
 

Returns all the maps.

Definition at line 65 of file mapmanager.hpp.

bool MapManager::isActive int   )  const
 

Gets the activity status of the map.

Definition at line 127 of file mapmanager.cpp.

void MapManager::raiseActive int   ) 
 

Sets the activity status of the map.

Definition at line 118 of file mapmanager.cpp.


Member Data Documentation

Maps MapManager::maps [private]
 

Definition at line 83 of file mapmanager.hpp.


The documentation for this class was generated from the following files:
Generated on Fri Mar 30 15:39:18 2007 for TMW Server by  doxygen 1.3.9.1