X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FHeroStatus.h;h=03c7811adecf79ec7368aa8bb45e1c462f5eb5c9;hb=cc3d698b8c1ad09d7a3f9e3f28bc84e0ac1735ea;hp=12fe62f05cde32c0ee68e0cbf2c97cd3746f650f;hpb=bba1ac05e8c1854dc61bd737d228d9bc18bbb6ad;p=l2e.git diff --git a/src/menu/HeroStatus.h b/src/menu/HeroStatus.h index 12fe62f..03c7811 100644 --- a/src/menu/HeroStatus.h +++ b/src/menu/HeroStatus.h @@ -1,10 +1,3 @@ -/* - * HeroStatus.h - * - * Created on: Oct 21, 2012 - * Author: holy - */ - #ifndef MENU_HEROSTATUS_H_ #define MENU_HEROSTATUS_H_ @@ -24,20 +17,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()); } - const geometry::Vector &Position() const { return position; } void Render(SDL_Surface *screen, const geometry::Vector &offset) const; private: const Resources *res; - const common::Hero *hero; - geometry::Vector position; + common::Hero **party; + int hero; };