]> git.localhorst.tv Git - l2e.git/blob - src/menu/HeroStatus.h
e24cb6c0db3e6b9e2633f4ec18ed500f7830b3ef
[l2e.git] / src / menu / HeroStatus.h
1 #ifndef MENU_HEROSTATUS_H_
2 #define MENU_HEROSTATUS_H_
3
4 #include "fwd.h"
5 #include "../common/fwd.h"
6 #include "../math/Vector.h"
7
8 #include <SDL.h>
9
10 namespace menu {
11
12 class HeroStatus {
13
14 public:
15         HeroStatus();
16         ~HeroStatus();
17
18 public:
19         void SetResources(const Resources *r) { res = r; }
20         void SetHero(common::Hero **p, int h) { party = p; hero = h; }
21
22         int Width() const;
23         int Height() const;
24         math::Vector<int> Size() const { return math::Vector<int>(Width(), Height()); }
25
26         void Render(SDL_Surface *screen, const math::Vector<int> &offset) const;
27
28 private:
29         const Resources *res;
30         common::Hero **party;
31         int hero;
32
33 };
34
35 }
36
37 #endif /* MENU_HEROSTATUS_H_ */