X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbattle%2FAttackTypeMenu.h;h=26a9dd9d07089ea128fe566c884c01fd0d30d045;hb=628b3a7276d0b330719e05504b23bafcf88f8fca;hp=b63ec97e53e55109c6abb2f4ec3f2f3378dd5fc9;hpb=c0860451b5fd681c3b3b8d985e8831276bbd917f;p=l2e.git diff --git a/src/battle/AttackTypeMenu.h b/src/battle/AttackTypeMenu.h index b63ec97..26a9dd9 100644 --- a/src/battle/AttackTypeMenu.h +++ b/src/battle/AttackTypeMenu.h @@ -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 @@ -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 ¢er); + void Render(SDL_Surface *screen, const geometry::Point &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;