]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/Tile.h
implemented map tile anmation
[l2e.git] / src / map / Tile.h
index f5afb246219e7d3e88faa3d06eb5980ff640076a..34481f315e01119af4ff50fbc2c9ee670a6f274d 100644 (file)
@@ -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<int> offset;
        int flags;
+       int frames;
 
 };