]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/Tile.h
implemented modulo operation for scripts
[l2e.git] / src / map / Tile.h
index d21de56d25fe2afbdacdc8a4735a06550dd8aaf1..06b3b1175b62ae315c5c5c3054e7b4e7eb051bc4 100644 (file)
@@ -28,6 +28,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; }
@@ -37,10 +39,11 @@ public:
 
 // temporary setters
 public:
-       void SetOffset(const geometry::Vector<int> &o) { offset = o; }
-       void SetFlags(Uint32 f) { flags = f; }
+       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;