summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-20 03:13:28 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-20 03:13:28 +0000
commit4be5313a359b326f80ee6e5903123c2bc298a8e6 (patch)
tree065c0e89fa30358e60dea0599376b0ba7364d485 /src/map.cpp
parent30b8b4ecb92bb208c25a970d767e41ca102b16f1 (diff)
downloadmana-client-4be5313a359b326f80ee6e5903123c2bc298a8e6.tar.gz
mana-client-4be5313a359b326f80ee6e5903123c2bc298a8e6.tar.bz2
mana-client-4be5313a359b326f80ee6e5903123c2bc298a8e6.tar.xz
mana-client-4be5313a359b326f80ee6e5903123c2bc298a8e6.zip
Fixed Cancel button for NPC choice dialog, thanks to Mra. Also some small
changes to map and map reader.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 2c7524a4..f172ad56 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -89,6 +89,7 @@ bool Location::operator< (const Location &loc) const
Map::Map():
width(0), height(0),
+ tileWidth(32), tileHeight(32),
onClosedList(1), onOpenList(2)
{
tiles = new Tile[width * height];
@@ -96,6 +97,7 @@ Map::Map():
Map::Map(int width, int height):
width(width), height(height),
+ tileWidth(32), tileHeight(32),
onClosedList(1), onOpenList(2)
{
tiles = new Tile[width * height];
@@ -227,6 +229,16 @@ int Map::getHeight()
return height;
}
+int Map::getTileWidth()
+{
+ return tileWidth;
+}
+
+int Map::getTileHeight()
+{
+ return tileHeight;
+}
+
PATH_NODE *Map::findPath(int startX, int startY, int destX, int destY)
{
// Declare open list, a list with open tiles sorted on F cost