#ifndef BATTLE_ATTACKTYPEMENU_H_
#define BATTLE_ATTACKTYPEMENU_H_
+#include "AttackChoice.h"
#include "../geometry/Point.h"
#include "../graphics/Sprite.h"
class AttackTypeMenu {
-public:
- enum Icon {
- SWORD,
- MAGIC,
- DEFEND,
- IKARI,
- ITEM
- };
-
public:
explicit AttackTypeMenu(const graphics::Sprite *icons)
- : icons(icons), selected(SWORD) { }
+ : icons(icons), selected(AttackChoice::SWORD) { }
public:
- void Select(Icon i) { selected = i; }
- Icon Selected() const { return selected; }
+ void Select(AttackChoice::Type t) { selected = t; }
+ AttackChoice::Type Selected() const { return selected; }
void Render(SDL_Surface *screen, const geometry::Point<int> &position);
int Width() const { return 3 * IconWidth(); }
private:
const graphics::Sprite *icons;
- Icon selected;
+ AttackChoice::Type selected;
};