X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FAttackTypeMenu.h;h=5f10c463f18b68d492c94ed38eb910cd54861b34;hb=HEAD;hp=d31d63babf03593b07dac87eaa93473d94f2ab81;hpb=0542849dfccfec1ce1477265fa0fee2401a8fb23;p=l2e.git diff --git a/src/battle/AttackTypeMenu.h b/src/battle/AttackTypeMenu.h index d31d63b..5f10c46 100644 --- a/src/battle/AttackTypeMenu.h +++ b/src/battle/AttackTypeMenu.h @@ -1,15 +1,8 @@ -/* - * AttackTypeMenu.h - * - * Created on: Aug 6, 2012 - * Author: holy - */ - #ifndef BATTLE_ATTACKTYPEMENU_H_ #define BATTLE_ATTACKTYPEMENU_H_ #include "AttackChoice.h" -#include "../geometry/Vector.h" +#include "../math/Vector.h" #include "../graphics/Sprite.h" #include @@ -25,12 +18,14 @@ public: public: void Select(AttackChoice::Type t) { selected = t; } AttackChoice::Type Selected() const { return selected; } - void Render(SDL_Surface *screen, const geometry::Vector &position); + void Render(SDL_Surface *screen, const math::Vector &position); int Width() const { return 3 * IconWidth(); } int Height() const { return 3 * IconHeight(); } + math::Vector Size() const { return 3 * IconSize(); } int IconWidth() const { return icons->Width(); } int IconHeight() const { return icons->Height(); } + const math::Vector &IconSize() const { return icons->Size(); } private: const graphics::Sprite *icons; @@ -40,4 +35,4 @@ private: } -#endif /* BATTLE_ATTACKTYPEMENU_H_ */ +#endif