]> git.localhorst.tv Git - l2e.git/blob - src/battle/NumberAnimation.h
c198cd8f4c1c1cb3ca75a45f55c123e3b2855484
[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 "../app/fwd.h"
12 #include "../geometry/Vector.h"
13 #include "../graphics/Animation.h"
14
15 namespace battle {
16
17 class NumberAnimation {
18
19 public:
20         NumberAnimation() : number(-1) { }
21         NumberAnimation(int number, const graphics::Animation *prototype, const graphics::Sprite *numbers);
22
23 public:
24         void Start(app::State &);
25         bool Running() const;
26         void CheckTimers(app::State &);
27
28         int Width() const;
29         int Height() const;
30
31         void Draw(SDL_Surface *dest, const geometry::Vector<int> &position) const;
32
33 private:
34         int number;
35         graphics::AnimationRunner animation[4];
36
37 };
38
39 }
40
41 #endif /* BATTLE_NUMBERANIMATION_H_ */