diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-05 14:31:39 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-05 14:31:39 +0000 |
commit | 9770f22a2846c68dbeea0780d595ad49ea6c490d (patch) | |
tree | 5b92d8fd40921b63feb611835279c9d9288deb05 /src/map.h | |
parent | 46129aab7f641016c3658c3a048a3939ae2214e9 (diff) | |
download | mana-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.h | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -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]; }; |