diff options
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Player.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Player.java b/core/src/ch/asynk/tankontank/engine/Player.java index c1c9365..aa9224f 100644 --- a/core/src/ch/asynk/tankontank/engine/Player.java +++ b/core/src/ch/asynk/tankontank/engine/Player.java @@ -34,6 +34,11 @@ public abstract class Player return pawn.isEnemy(faction); } + public boolean isEnemy(Faction other) + { + return faction.isEnemy(other); + } + public void addUnit(Pawn pawn) { units.add(pawn); |