summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-18 07:32:50 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-18 07:32:50 +0200
commit215e467bbbbff4a5bc5836faf4fa476834575390 (patch)
treebfedc83f44b1e0346181188c2374d2c6a16cbc43 /core
parenta594a20752ec27a0a9dea6b8e52a72263d00abc3 (diff)
downloadRustAndDust-215e467bbbbff4a5bc5836faf4fa476834575390.zip
RustAndDust-215e467bbbbff4a5bc5836faf4fa476834575390.tar.gz
Player: add isEnemy(Faction)
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Player.java5
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);