summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-25 23:10:29 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-25 23:10:29 +0200
commita1dc06196ddcee0fa2b9357be86c9c8bace967e3 (patch)
tree608c182350ca2548380709f4b5605ac9ab63deba /src/map.cpp
parentd76a9210b07cdcf97ae4f94af429b5fa3e72b239 (diff)
parenta36909f5c3408153c9b5f9477adde9b27d8c7482 (diff)
downloadmana-client-a1dc06196ddcee0fa2b9357be86c9c8bace967e3.tar.gz
mana-client-a1dc06196ddcee0fa2b9357be86c9c8bace967e3.tar.bz2
mana-client-a1dc06196ddcee0fa2b9357be86c9c8bace967e3.tar.xz
mana-client-a1dc06196ddcee0fa2b9357be86c9c8bace967e3.zip
Merge branch '0.0.29'
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 4d867865..f0a5eae0 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -460,6 +460,19 @@ void Map::removeSprite(SpriteIterator iterator)
mSprites.erase(iterator);
}
+const std::string &Map::getMusicFile() const
+{
+ return getProperty("music");
+}
+
+const std::string &Map::getName() const
+{
+ if (hasProperty("name"))
+ return getProperty("name");
+
+ return getProperty("mapname");
+}
+
static int const basicCost = 100;
Path Map::findPath(int startX, int startY, int destX, int destY, unsigned char walkmask, int maxCost)