]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/HeroStatus.h
removed lazy fwd headers
[l2e.git] / src / menu / HeroStatus.h
index 12fe62f05cde32c0ee68e0cbf2c97cd3746f650f..fbe21abb5b52aace4183d8241afa439d1ea0c673 100644 (file)
@@ -1,16 +1,14 @@
-/*
- * HeroStatus.h
- *
- *  Created on: Oct 21, 2012
- *      Author: holy
- */
-
 #ifndef MENU_HEROSTATUS_H_
 #define MENU_HEROSTATUS_H_
 
-#include "fwd.h"
-#include "../common/fwd.h"
-#include "../geometry/Vector.h"
+namespace common {
+       class Hero;
+}
+namespace menu {
+       struct Resources;
+}
+
+#include "../math/Vector.h"
 
 #include <SDL.h>
 
@@ -24,20 +22,18 @@ public:
 
 public:
        void SetResources(const Resources *r) { res = r; }
-       void SetHero(const common::Hero *h) { hero = h; }
-       void SetPosition(const geometry::Vector<int> &p) { position = p; }
+       void SetHero(common::Hero **p, int h) { party = p; hero = h; }
 
        int Width() const;
        int Height() const;
-       geometry::Vector<int> Size() const { return geometry::Vector<int>(Width(), Height()); }
-       const geometry::Vector<int> &Position() const { return position; }
+       math::Vector<int> Size() const { return math::Vector<int>(Width(), Height()); }
 
-       void Render(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
+       void Render(SDL_Surface *screen, const math::Vector<int> &offset) const;
 
 private:
        const Resources *res;
-       const common::Hero *hero;
-       geometry::Vector<int> position;
+       common::Hero **party;
+       int hero;
 
 };