summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-05 14:31:39 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-05 14:31:39 +0000
commit9770f22a2846c68dbeea0780d595ad49ea6c490d (patch)
tree5b92d8fd40921b63feb611835279c9d9288deb05 /src/map.h
parent46129aab7f641016c3658c3a048a3939ae2214e9 (diff)
downloadmana-9770f22a2846c68dbeea0780d595ad49ea6c490d.tar.gz
mana-9770f22a2846c68dbeea0780d595ad49ea6c490d.tar.bz2
mana-9770f22a2846c68dbeea0780d595ad49ea6c490d.tar.xz
mana-9770f22a2846c68dbeea0780d595ad49ea6c490d.zip
Supposed to make it more readable, but I don't think really worked.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/map.h b/src/map.h
index a4c8e351..40ca168d 100644
--- a/src/map.h
+++ b/src/map.h
@@ -24,8 +24,6 @@
#ifndef _TMW_MAP_H
#define _TMW_MAP_H
-#define MAP_WIDTH 200
-#define MAP_HEIGHT 200
#define TILESET_WIDTH 30
#define WALKABLE 0
@@ -96,8 +94,20 @@ class Map
*/
int getPathWalk(int x, int y);
+ /**
+ * Returns the width of this map.
+ */
+ int getWidth();
+
+ /**
+ * Returns the height of this map.
+ */
+ int getHeight();
+
private:
- TILE tiles[MAP_WIDTH][MAP_HEIGHT];
+ const static int width = 200;
+ const static int height = 200;
+ TILE tiles[width][height];
char tileset[20];
char bg_music[20];
};