summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-12 02:01:04 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-12 02:01:04 +0200
commit667a0a29512c8fdf9acfe547f6155221f387b73e (patch)
treee6a11bd4f0d7ca257770b764928baebdb18d95da /core
parentc49788c9d80494e44070f29199517b2da96b61a7 (diff)
downloadRustAndDust-667a0a29512c8fdf9acfe547f6155221f387b73e.zip
RustAndDust-667a0a29512c8fdf9acfe547f6155221f387b73e.tar.gz
Unit: add isEnemy(Army)
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java
index 7419a10..df6c093 100644
--- a/core/src/ch/asynk/tankontank/game/Unit.java
+++ b/core/src/ch/asynk/tankontank/game/Unit.java
@@ -56,6 +56,11 @@ public class Unit extends HeadedPawn
this.hasFired = false;
}
+ public boolean isEnemy(Army other)
+ {
+ return army.isEnemy(other);
+ }
+
@Override
public int getMovementPoints()
{