X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FTile.h;h=34481f315e01119af4ff50fbc2c9ee670a6f274d;hb=d97b7038c28058a76e7214e0dce0394fd8b67cff;hp=f5afb246219e7d3e88faa3d06eb5980ff640076a;hpb=4309d259becd96ead792678257e910c03a6b4a3d;p=l2e.git diff --git a/src/map/Tile.h b/src/map/Tile.h index f5afb24..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,6 +50,7 @@ private: SDL_Surface *battlebg; math::Vector offset; int flags; + int frames; };