diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-12 02:01:04 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-12 02:01:04 +0200 |
commit | 667a0a29512c8fdf9acfe547f6155221f387b73e (patch) | |
tree | e6a11bd4f0d7ca257770b764928baebdb18d95da /core/src/ch/asynk | |
parent | c49788c9d80494e44070f29199517b2da96b61a7 (diff) | |
download | RustAndDust-667a0a29512c8fdf9acfe547f6155221f387b73e.zip RustAndDust-667a0a29512c8fdf9acfe547f6155221f387b73e.tar.gz |
Unit: add isEnemy(Army)
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Unit.java | 5 |
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() { |