]> git.localhorst.tv Git - l2e.git/blob - src/battle/states/PerformAttacks.h
added big numbers + animation
[l2e.git] / src / battle / states / PerformAttacks.h
1 /*
2  * PerformAttacks.h
3  *
4  *  Created on: Aug 10, 2012
5  *      Author: holy
6  */
7
8 #ifndef BATTLE_PERFORMATTACKS_H_
9 #define BATTLE_PERFORMATTACKS_H_
10
11 #include "../../app/State.h"
12
13 #include "../BattleState.h"
14 #include "../../geometry/Vector.h"
15
16 #include <vector>
17
18 namespace graphics { class Animation; }
19
20 namespace battle {
21
22 class PerformAttacks
23 : public app::State {
24
25 public:
26         explicit PerformAttacks(BattleState *battle)
27         : ctrl(0), battle(battle), moveAnimation(0), titleBarText(0), cursor(-1) { }
28
29 public:
30         virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
31         virtual void ExitState(app::Application &ctrl, SDL_Surface *screen);
32         virtual void ResumeState(app::Application &ctrl, SDL_Surface *screen);
33         virtual void PauseState(app::Application &ctrl, SDL_Surface *screen);
34
35         virtual void Resize(int width, int height);
36
37         virtual void HandleEvents(const app::Input &);
38         virtual void UpdateWorld(float deltaT);
39         virtual void Render(SDL_Surface *);
40
41 private:
42         void RenderTitleBar(SDL_Surface *screen, const geometry::Vector<int> &offset);
43
44 private:
45         app::Application *ctrl;
46         BattleState *battle;
47         graphics::Animation *moveAnimation;
48         const char *titleBarText;
49         app::Timer<Uint32> titleBarTimer;
50         std::vector<BattleState::Order> order;
51         int cursor;
52
53 };
54
55 }
56
57 #endif /* BATTLE_PERFORMATTACKS_H_ */