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