-/*
- * 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>
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;
};
}
-#endif /* MENU_HEROSTATUS_H_ */
+#endif