4 * Created on: Aug 6, 2012
8 #ifndef BATTLE_ATTACKTYPEMENU_H_
9 #define BATTLE_ATTACKTYPEMENU_H_
11 #include "AttackChoice.h"
12 #include "../geometry/Vector.h"
13 #include "../graphics/Sprite.h"
19 class AttackTypeMenu {
22 explicit AttackTypeMenu(const graphics::Sprite *icons)
23 : icons(icons), selected(AttackChoice::SWORD) { }
26 void Select(AttackChoice::Type t) { selected = t; }
27 AttackChoice::Type Selected() const { return selected; }
28 void Render(SDL_Surface *screen, const geometry::Vector<int> &position);
30 int Width() const { return 3 * IconWidth(); }
31 int Height() const { return 3 * IconHeight(); }
32 int IconWidth() const { return icons->Width(); }
33 int IconHeight() const { return icons->Height(); }
36 const graphics::Sprite *icons;
37 AttackChoice::Type selected;
43 #endif /* BATTLE_ATTACKTYPEMENU_H_ */