summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java
index dc857a6..cab86ce 100644
--- a/core/src/ch/asynk/tankontank/game/Unit.java
+++ b/core/src/ch/asynk/tankontank/game/Unit.java
@@ -31,6 +31,12 @@ public class Unit extends HeadedPawn
}
@Override
+ public int getAngleOfAttack()
+ {
+ return orientation.getFrontSides();
+ }
+
+ @Override
public boolean isEnemy(Pawn other)
{
return army.isEnemy(((Unit) other).army);