]> git.localhorst.tv Git - l2e.git/blob - src/battle/HeroTag.h
run monsters' attack animation
[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
35 public:
36         const graphics::Sprite *HeroSprite() const;
37         geometry::Vector<int> HeroOffset() const;
38
39         void Render(SDL_Surface *screen, int width, int height, geometry::Point<int> position, bool active) const;
40
41 private:
42         const BattleState *battle;
43         int index;
44
45 };
46
47 }
48
49 #endif /* BATTLE_HEROTAG_H_ */