summaryrefslogtreecommitdiff
path: root/src/mapmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapmanager.h')
-rw-r--r--src/mapmanager.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mapmanager.h b/src/mapmanager.h
index be166881..ede3ec6f 100644
--- a/src/mapmanager.h
+++ b/src/mapmanager.h
@@ -46,7 +46,7 @@ class MapManager: public utils::Singleton<MapManager>
/**
* Load the specified map
*/
- void loadMap(const unsigned int mapId);
+ Map *loadMap(const unsigned int mapId);
/**
* Unload the specified map
@@ -62,6 +62,11 @@ class MapManager: public utils::Singleton<MapManager>
* Return the requested map
*/
Map *getMap(const unsigned int mapId);
+
+ /**
+ * Check if a map was already loaded.
+ */
+ bool isLoaded(const unsigned int mapId);
protected:
/**