X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FHeroStatus.h;h=e24cb6c0db3e6b9e2633f4ec18ed500f7830b3ef;hb=a3ba4dc677ad7c92eeb78b20b642241563605c9d;hp=2888b1555bb7d4f5f521c36d5bc446feec719090;hpb=243cb7d922fe888be8d18241de138ad5949de430;p=l2e.git diff --git a/src/menu/HeroStatus.h b/src/menu/HeroStatus.h index 2888b15..e24cb6c 100644 --- a/src/menu/HeroStatus.h +++ b/src/menu/HeroStatus.h @@ -1,16 +1,9 @@ -/* - * 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" +#include "../math/Vector.h" #include @@ -24,17 +17,18 @@ public: public: void SetResources(const Resources *r) { res = r; } - void SetHero(const common::Hero *h) { hero = h; } + void SetHero(common::Hero **p, int h) { party = p; hero = h; } int Width() const; int Height() const; - geometry::Vector Size() const { return geometry::Vector(Width(), Height()); } + math::Vector Size() const { return math::Vector(Width(), Height()); } - void Render(SDL_Surface *screen, const geometry::Vector &offset) const; + void Render(SDL_Surface *screen, const math::Vector &offset) const; private: const Resources *res; - const common::Hero *hero; + common::Hero **party; + int hero; };