]> git.localhorst.tv Git - l2e.git/blob - src/battle/AttackTypeMenu.h
added attack type selection menu in battle state
[l2e.git] / src / battle / AttackTypeMenu.h
1 /*
2  * AttackTypeMenu.h
3  *
4  *  Created on: Aug 6, 2012
5  *      Author: holy
6  */
7
8 #ifndef BATTLE_ATTACKTYPEMENU_H_
9 #define BATTLE_ATTACKTYPEMENU_H_
10
11 namespace app { class Input; }
12 namespace graphics { class Sprite; }
13
14 #include "../geometry/Point.h"
15
16 #include <SDL.h>
17
18 namespace battle {
19
20 class AttackTypeMenu {
21
22 public:
23         enum Icon {
24                 SWORD,
25                 MAGIC,
26                 DEFEND,
27                 IKARI,
28                 ITEM
29         };
30
31 public:
32         explicit AttackTypeMenu(const graphics::Sprite *icons)
33         : icons(icons), selected(SWORD) { }
34
35 public:
36         void ReadInput(const app::Input &);
37         Icon Selected() const { return selected; }
38         void Render(SDL_Surface *screen, const geometry::Point<int> &center);
39
40 private:
41         const graphics::Sprite *icons;
42         Icon selected;
43
44 };
45
46 }
47
48 #endif /* BATTLE_ATTACKTYPEMENU_H_ */