]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/BattleState.h
switched some (x,y) and (w,h) pairs to vectors
[l2e.git] / src / battle / BattleState.h
index 27953cd013cd5e050aa9d2bded9a20eeb78856f8..806b4af59154525475ce3765532dc9600e2c3c6b 100644 (file)
@@ -139,6 +139,7 @@ public:
        }
        int Width() const { return background->w; }
        int Height() const { return background->h; }
+       geometry::Vector<int> Size() const { return geometry::Vector<int>(Width(), Height()); }
 
        void RenderBackground(SDL_Surface *screen, const geometry::Vector<int> &offset);
        void RenderMonsters(SDL_Surface *screen, const geometry::Vector<int> &offset);