summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-13 16:00:47 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-13 16:00:47 +0200
commit173715662329bf58afca3dcdea3676d2f56a82b7 (patch)
treebe4812aa83b8439e33bb04058a1f3be0c618ee56 /core/src/ch/asynk
parent7b5a827abd46ee5700793f024f5e70f4a4a3e723 (diff)
downloadRustAndDust-173715662329bf58afca3dcdea3676d2f56a82b7.zip
RustAndDust-173715662329bf58afca3dcdea3676d2f56a82b7.tar.gz
Pawn,Unit: add int getFlankSides()
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Pawn.java1
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java6
2 files changed, 7 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java
index a3b0a26..f468b03 100644
--- a/core/src/ch/asynk/tankontank/engine/Pawn.java
+++ b/core/src/ch/asynk/tankontank/engine/Pawn.java
@@ -33,6 +33,7 @@ public abstract class Pawn implements Drawable, Disposable
public abstract int getMovementPoints();
public abstract int getRoadMarchBonus();
public abstract int getAngleOfAttack();
+ public abstract int getFlankSides();
public abstract int getAttackRangeFrom(Tile tile);
public abstract boolean isHq();
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java
index 2d79a5c..f6c6c1a 100644
--- a/core/src/ch/asynk/tankontank/game/Unit.java
+++ b/core/src/ch/asynk/tankontank/game/Unit.java
@@ -95,6 +95,12 @@ public class Unit extends HeadedPawn
}
@Override
+ public int getFlankSides()
+ {
+ return orientation.getBackSides();
+ }
+
+ @Override
public boolean isHq()
{
return hq;