]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/AttackTypeMenu.cpp
removed stupid file headers that eclipse put in
[l2e.git] / src / battle / AttackTypeMenu.cpp
index 2ec7a1f129b26bbe25eadf47232d014023fc8cdd..16bda253dd86df85206e00ba3531e8f68b354bba 100644 (file)
@@ -1,27 +1,18 @@
-/*
- * AttackTypeMenu.cpp
- *
- *  Created on: Aug 6, 2012
- *      Author: holy
- */
-
 #include "AttackTypeMenu.h"
 
-#include "../geometry/operators.h"
 #include "../geometry/Vector.h"
 #include "../graphics/Sprite.h"
 
-using geometry::Point;
 using geometry::Vector;
 
 namespace battle {
 
-void AttackTypeMenu::Render(SDL_Surface *screen, const geometry::Point<int> &position) {
-       Vector<int> swordOffset(IconWidth(), IconHeight());
-       Vector<int> magicOffset(IconWidth(), 0);
-       Vector<int> defendOffset(2 * IconWidth(), IconHeight());
-       Vector<int> ikariOffset(IconWidth(), 2 * IconHeight());
-       Vector<int> itemOffset(0, IconHeight());
+void AttackTypeMenu::Render(SDL_Surface *screen, const geometry::Vector<int> &position) {
+       const Vector<int> &swordOffset(IconSize());
+       const Vector<int> magicOffset(IconWidth(), 0);
+       const Vector<int> defendOffset(2 * IconWidth(), IconHeight());
+       const Vector<int> ikariOffset(IconWidth(), 2 * IconHeight());
+       const Vector<int> itemOffset(0, IconHeight());
 
        icons->Draw(screen, position + swordOffset, AttackChoice::SWORD, (selected == AttackChoice::SWORD) ? 1 : 0);
        icons->Draw(screen, position + magicOffset, AttackChoice::MAGIC, (selected == AttackChoice::MAGIC) ? 1 : 0);