]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/Tile.h
switched to static type IDs
[l2e.git] / src / map / Tile.h
index 88db623ed0cdb5e8f24e2949f924ac3dc697b06c..43f9dbb8e9b11a2939a7ea28d6ff32074d8aa5fd 100644 (file)
@@ -16,6 +16,9 @@ namespace map {
 
 class Tile {
 
+public:
+       static const int TYPE_ID = 603;
+
 public:
        Tile();
        ~Tile() { }
@@ -28,6 +31,8 @@ public:
                BLOCK_WEST = 0x08,
        };
 
+       SDL_Surface *BattleBackground() { return battlebg; }
+
        const geometry::Vector<int> &Offset() const { return offset; }
 
        bool BlocksNorth() const { return flags & BLOCK_NORTH; }
@@ -35,14 +40,18 @@ public:
        bool BlocksSouth() const { return flags & BLOCK_SOUTH; }
        bool BlocksWest() const { return flags & BLOCK_WEST; }
 
+       static void CreateTypeDescription();
+       static void Construct(void *);
+
 // temporary setters
 public:
        Tile &SetOffset(const geometry::Vector<int> &o) { offset = o; return *this; }
        Tile &SetFlags(Uint32 f) { flags = f; return *this; }
 
 private:
+       SDL_Surface *battlebg;
        geometry::Vector<int> offset;
-       Uint32 flags;
+       int flags;
 
 };