X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FTile.h;h=34481f315e01119af4ff50fbc2c9ee670a6f274d;hb=d97b7038c28058a76e7214e0dce0394fd8b67cff;hp=252ede3b8788be4bf8d5900be9c3498fadb4a352;hpb=a3ba4dc677ad7c92eeb78b20b642241563605c9d;p=l2e.git diff --git a/src/map/Tile.h b/src/map/Tile.h index 252ede3..34481f3 100644 --- a/src/map/Tile.h +++ b/src/map/Tile.h @@ -22,6 +22,7 @@ public: BLOCK_EAST = 0x02, BLOCK_SOUTH = 0x04, BLOCK_WEST = 0x08, + LADDER = 0x10, }; SDL_Surface *BattleBackground() { return battlebg; } @@ -33,6 +34,10 @@ public: bool BlocksSouth() const { return flags & BLOCK_SOUTH; } bool BlocksWest() const { return flags & BLOCK_WEST; } + bool IsLadder() const { return flags & LADDER; } + + int NumFrames() const { return frames; } + static void CreateTypeDescription(); static void Construct(void *); @@ -45,9 +50,10 @@ private: SDL_Surface *battlebg; math::Vector offset; int flags; + int frames; }; } -#endif /* MAP_TILE_H_ */ +#endif