diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-13 00:21:37 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-13 00:21:37 +0100 |
commit | 524f0eacefb4b72cff034eac717bc270e43b6c6e (patch) | |
tree | 71ed12af75e4d4c5b062bc678e86d8aed07872c7 /core/src/ch/asynk/tankontank/game | |
parent | 18727a3409698351b13b000f9adbc0e6fc840b64 (diff) | |
download | RustAndDust-524f0eacefb4b72cff034eac717bc270e43b6c6e.zip RustAndDust-524f0eacefb4b72cff034eac717bc270e43b6c6e.tar.gz |
BattleHeadToHead: use is(Army) instead os isEnemey(Army)
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java index 7d17c1a..cbbeb6a 100644 --- a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java +++ b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java @@ -53,7 +53,7 @@ public class BattleHeadToHead extends BattleCommon @Override public Position getHudPosition(Player player) { - return (player.isEnemy(Army.GE) ? Position.TOP_RIGHT: Position.TOP_LEFT); + return (player.is(Army.US) ? Position.TOP_RIGHT: Position.TOP_LEFT); } @Override @@ -74,7 +74,7 @@ public class BattleHeadToHead extends BattleCommon Player gePlayer; Player usPlayer; - if (a.isEnemy(Army.GE)) { + if (a.is(Army.US)) { usPlayer = a; gePlayer = b; } else { |