diff options
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -130,7 +130,8 @@ class MapLayer int startX, int startY, int endX, int endY, int scrollX, int scrollY, - const MapSprites &sprites) const; + const MapSprites &sprites, + int mDebugFlags) const; private: int mX, mY; @@ -161,6 +162,13 @@ class Map : public Properties BLOCKMASK_MONSTER = 0x02 // = bin 0000 0010 }; + enum DebugType + { + MAP_NORMAL = 0, + MAP_DEBUG = 1, + MAP_SPECIAL = 2 + }; + /** * Constructor, taking map and tile size as parameters. */ @@ -195,7 +203,8 @@ class Map : public Properties /** * Visualizes collision layer for debugging */ - void drawCollision(Graphics *graphics, int scrollX, int scrollY); + void drawCollision(Graphics *graphics, int scrollX, int scrollY, + int debugFlags); /** * Adds a layer to this map. The map takes ownership of the layer. @@ -289,6 +298,10 @@ class Map : public Properties void addAnimation(int gid, TileAnimation *animation) { mTileAnimations[gid] = animation; } + void setDebugFlags(int n) {mDebugFlags = n;} + + int getDebugFlags() {return mDebugFlags;} + /** * Gets the tile animation for a specific gid */ @@ -331,6 +344,9 @@ class Map : public Properties Tilesets mTilesets; MapSprites mSprites; + // debug flags + int mDebugFlags; + // Pathfinding members int mOnClosedList, mOnOpenList; |