summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-14 12:34:35 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-14 12:34:35 +0200
commitac7a1ccae0ce038c6d92feaba622b72f1a339226 (patch)
treefe75af90d3839f7e700c04939fc8577a9b063a0a /core/src/ch/asynk/tankontank/engine
parent6f1e3eeb6ca3971c3a209ec0dcbd2b5040c7db0b (diff)
downloadRustAndDust-ac7a1ccae0ce038c6d92feaba622b72f1a339226.zip
RustAndDust-ac7a1ccae0ce038c6d92feaba622b72f1a339226.tar.gz
Pawn,Unit: add boolean isHqOf(Pawn), Player add boolean canPromote(Pawn)
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Pawn.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java
index ef91544..83cd642 100644
--- a/core/src/ch/asynk/tankontank/engine/Pawn.java
+++ b/core/src/ch/asynk/tankontank/engine/Pawn.java
@@ -46,6 +46,7 @@ public abstract class Pawn implements Drawable, Disposable
public abstract int getAttackRangeFrom(Tile tile);
public abstract boolean isHq();
+ public abstract boolean isHqOf(Pawn other);
public abstract boolean isUnit();
public abstract boolean isEnemy(Pawn other);