]> git.localhorst.tv Git - l2e.git/blob - src/battle/HeroTag.h
added and implemented swap heroes state
[l2e.git] / src / battle / HeroTag.h
1 /*
2  * HeroTag.h
3  *
4  *  Created on: Aug 6, 2012
5  *      Author: holy
6  */
7
8 #ifndef BATTLE_HEROTAG_H_
9 #define BATTLE_HEROTAG_H_
10
11 #include "Hero.h"
12 #include "../geometry/Point.h"
13 #include "../geometry/Vector.h"
14
15 #include <SDL.h>
16
17 namespace graphics {
18         class Font;
19         class Frame;
20         class Gauge;
21         class Sprite;
22 }
23
24 namespace battle {
25
26 class BattleState;
27
28 class HeroTag {
29
30 public:
31         HeroTag() : battle(0), index(0) { };
32         HeroTag(const BattleState *battle, int heroIndex)
33         : battle(battle), index(heroIndex) { }
34         ~HeroTag() { }
35
36 public:
37         const graphics::Sprite *HeroSprite() const;
38         geometry::Vector<int> HeroOffset() const;
39
40         void Render(SDL_Surface *screen, int width, int height, geometry::Point<int> position, bool active) const;
41
42 private:
43         const BattleState *battle;
44         int index;
45
46 };
47
48 }
49
50 #endif /* BATTLE_HEROTAG_H_ */