]> git.localhorst.tv Git - l2e.git/blob - src/battle/NumberAnimation.h
removed useless comments
[l2e.git] / src / battle / NumberAnimation.h
1 #ifndef BATTLE_NUMBERANIMATION_H_
2 #define BATTLE_NUMBERANIMATION_H_
3
4 namespace app {
5         class State;
6 }
7 namespace math {
8         template<class>
9         class Vector;
10 }
11
12 #include "../graphics/Animation.h"
13
14 namespace battle {
15
16 class NumberAnimation {
17
18 public:
19         NumberAnimation() : number(-1) { }
20         NumberAnimation(int number, const graphics::Animation *prototype, const graphics::Sprite *numbers);
21
22 public:
23         void Start(app::State &);
24         bool Running() const;
25         void CheckTimers(app::State &);
26
27         int Width() const;
28         int Height() const;
29
30         void Draw(SDL_Surface *dest, const math::Vector<int> &position) const;
31
32 private:
33         int number;
34         graphics::AnimationRunner animation[4];
35
36 };
37
38 }
39
40 #endif