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