X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FAttackTypeMenu.h;h=db07443fd7e008ba26c7045e6108beb162a61cba;hb=b02da898c7c8a08141df4e797774a61cf5e0163f;hp=4b38dd3bd45d2ecf908fb0242df93d94e5a13123;hpb=4d0a650b178d81387caa36953ed06cc5d6c28213;p=l2e.git diff --git a/src/battle/AttackTypeMenu.h b/src/battle/AttackTypeMenu.h index 4b38dd3..db07443 100644 --- a/src/battle/AttackTypeMenu.h +++ b/src/battle/AttackTypeMenu.h @@ -9,7 +9,7 @@ #define BATTLE_ATTACKTYPEMENU_H_ #include "AttackChoice.h" -#include "../geometry/Point.h" +#include "../geometry/Vector.h" #include "../graphics/Sprite.h" #include @@ -25,12 +25,14 @@ public: public: void Select(AttackChoice::Type t) { selected = t; } AttackChoice::Type Selected() const { return selected; } - void Render(SDL_Surface *screen, const geometry::Point &position); + void Render(SDL_Surface *screen, const geometry::Vector &position); int Width() const { return 3 * IconWidth(); } int Height() const { return 3 * IconHeight(); } + geometry::Vector Size() const { return 3 * IconSize(); } int IconWidth() const { return icons->Width(); } int IconHeight() const { return icons->Height(); } + const geometry::Vector &IconSize() const { return icons->Size(); } private: const graphics::Sprite *icons;