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