4 * Created on: Aug 6, 2012
8 #ifndef BATTLE_ATTACKTYPEMENU_H_
9 #define BATTLE_ATTACKTYPEMENU_H_
11 namespace app { class Input; }
13 #include "../geometry/Point.h"
14 #include "../graphics/Sprite.h"
20 class AttackTypeMenu {
32 explicit AttackTypeMenu(const graphics::Sprite *icons)
33 : icons(icons), selected(SWORD) { }
36 void ReadInput(const app::Input &);
37 Icon Selected() const { return selected; }
38 void Render(SDL_Surface *screen, const geometry::Point<int> &position);
40 int Width() const { return 3 * IconWidth(); }
41 int Height() const { return 3 * IconHeight(); }
42 int IconWidth() const { return icons->Width(); }
43 int IconHeight() const { return icons->Height(); }
46 const graphics::Sprite *icons;
53 #endif /* BATTLE_ATTACKTYPEMENU_H_ */