4 * Created on: Aug 6, 2012
8 #ifndef BATTLE_ATTACKTYPEMENU_H_
9 #define BATTLE_ATTACKTYPEMENU_H_
11 #include "../geometry/Point.h"
12 #include "../graphics/Sprite.h"
18 class AttackTypeMenu {
30 explicit AttackTypeMenu(const graphics::Sprite *icons)
31 : icons(icons), selected(SWORD) { }
34 void Select(Icon i) { selected = i; }
35 Icon Selected() const { return selected; }
36 void Render(SDL_Surface *screen, const geometry::Point<int> &position);
38 int Width() const { return 3 * IconWidth(); }
39 int Height() const { return 3 * IconHeight(); }
40 int IconWidth() const { return icons->Width(); }
41 int IconHeight() const { return icons->Height(); }
44 const graphics::Sprite *icons;
51 #endif /* BATTLE_ATTACKTYPEMENU_H_ */