X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=inline;f=src%2Fmenu%2FHeroStatus.h;fp=src%2Fmenu%2FHeroStatus.h;h=1b88da2229565a11ae3517906860e3547acf872a;hb=57a75f13e98f4b5d311c2d3b9d9ff637120c5ee2;hp=0000000000000000000000000000000000000000;hpb=e4f678d8cce5408590178bc873fde1754c037d0d;p=l2e.git diff --git a/src/menu/HeroStatus.h b/src/menu/HeroStatus.h new file mode 100644 index 0000000..1b88da2 --- /dev/null +++ b/src/menu/HeroStatus.h @@ -0,0 +1,45 @@ +/* + * 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 + +namespace menu { + +class HeroStatus { + +public: + HeroStatus(); + ~HeroStatus(); + +public: + void SetResources(const Resources *r) { res = r; } + void SetHero(const common::Hero *h) { hero = h; } + void SetPosition(const geometry::Vector &p) { position = p; } + + int Width() const; + int Height() const; + geometry::Vector Size() const { return geometry::Vector(Width(), Height()); } + + void Render(SDL_Surface *screen, const geometry::Vector &offset) const; + +private: + const Resources *res; + const common::Hero *hero; + geometry::Vector position; + +}; + +} + +#endif /* MENU_HEROSTATUS_H_ */