#ifndef BATTLE_ATTACKTYPEMENU_H_
#define BATTLE_ATTACKTYPEMENU_H_
-namespace app { class Input; }
-namespace graphics { class Sprite; }
-
#include "../geometry/Point.h"
+#include "../graphics/Sprite.h"
#include <SDL.h>
: icons(icons), selected(SWORD) { }
public:
- void ReadInput(const app::Input &);
+ void Select(Icon i) { selected = i; }
Icon Selected() const { return selected; }
- void Render(SDL_Surface *screen, const geometry::Point<int> ¢er);
+ void Render(SDL_Surface *screen, const geometry::Point<int> &position);
+
+ int Width() const { return 3 * IconWidth(); }
+ int Height() const { return 3 * IconHeight(); }
+ int IconWidth() const { return icons->Width(); }
+ int IconHeight() const { return icons->Height(); }
private:
const graphics::Sprite *icons;