summaryrefslogtreecommitdiff
path: root/src/game-server/mapmanager.h
diff options
context:
space:
mode:
authorPrzemysław Grzywacz <nexather@gmail.com>2013-05-03 15:16:34 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-05-03 15:28:41 +0200
commitf6f27a9ffaf72f9856240db1bb788a9efa3e86f0 (patch)
tree2be68e1fd640061f0bdd062e906e2521879fef31 /src/game-server/mapmanager.h
parenteb9fdd6852fced4ca9125b93585b95eb319dce18 (diff)
downloadmanaserv-f6f27a9ffaf72f9856240db1bb788a9efa3e86f0.tar.gz
manaserv-f6f27a9ffaf72f9856240db1bb788a9efa3e86f0.tar.bz2
manaserv-f6f27a9ffaf72f9856240db1bb788a9efa3e86f0.tar.xz
manaserv-f6f27a9ffaf72f9856240db1bb788a9efa3e86f0.zip
Maps are now configured in settings.xml too
Diffstat (limited to 'src/game-server/mapmanager.h')
-rw-r--r--src/game-server/mapmanager.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/game-server/mapmanager.h b/src/game-server/mapmanager.h
index 12cbc342..b1b47591 100644
--- a/src/game-server/mapmanager.h
+++ b/src/game-server/mapmanager.h
@@ -25,23 +25,24 @@
#include <map>
#include <string>
+#include "utils/xml.h"
+
class MapComposite;
namespace MapManager
{
typedef std::map< int, MapComposite * > Maps;
- /**
- * Loads map reference file and prepares maps.
- * @return the number of maps loaded succesfully
- */
- int initialize(const std::string &mapReferenceFile);
+ void initialize();
- /**
- * Destroy loaded maps.
- */
void deinitialize();
+ void reload();
+
+ void readMapNode(xmlNodePtr node);
+
+ void checkStatus();
+
/**
* Returns the requested map.
*