diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Pawn.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java index 991e97e..16a74e6 100644 --- a/core/src/ch/asynk/tankontank/engine/Pawn.java +++ b/core/src/ch/asynk/tankontank/engine/Pawn.java @@ -25,6 +25,10 @@ public abstract class Pawn implements Moveable, Disposable { } + public interface PawnId + { + } + public class Engagement { Pawn target; @@ -108,6 +112,7 @@ public abstract class Pawn implements Moveable, Disposable public abstract int getEngagementRangeFrom(Tile tile); public abstract boolean isUnit(); + public abstract boolean isA(PawnId id); public abstract boolean isA(PawnType type); public abstract boolean isHq(); public abstract boolean isHqOf(Pawn other); |