]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/AttackTypeMenu.h
added battle move menu
[l2e.git] / src / battle / AttackTypeMenu.h
index b63ec97e53e55109c6abb2f4ec3f2f3378dd5fc9..26a9dd9d07089ea128fe566c884c01fd0d30d045 100644 (file)
@@ -8,10 +8,8 @@
 #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>
 
@@ -33,9 +31,14 @@ public:
        : 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> &center);
+       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;