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