X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FHeroStatus.h;h=fbe21abb5b52aace4183d8241afa439d1ea0c673;hb=092a2dd175a4001a495c84ee85211734fb928c83;hp=1b88da2229565a11ae3517906860e3547acf872a;hpb=57a75f13e98f4b5d311c2d3b9d9ff637120c5ee2;p=l2e.git diff --git a/src/menu/HeroStatus.h b/src/menu/HeroStatus.h index 1b88da2..fbe21ab 100644 --- a/src/menu/HeroStatus.h +++ b/src/menu/HeroStatus.h @@ -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 @@ -24,19 +22,18 @@ public: public: void SetResources(const Resources *r) { res = r; } - void SetHero(const common::Hero *h) { hero = h; } - void SetPosition(const geometry::Vector &p) { position = p; } + 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; - geometry::Vector position; + common::Hero **party; + int hero; };