summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-13 00:21:37 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-13 00:21:37 +0100
commit524f0eacefb4b72cff034eac717bc270e43b6c6e (patch)
tree71ed12af75e4d4c5b062bc678e86d8aed07872c7 /core/src/ch/asynk
parent18727a3409698351b13b000f9adbc0e6fc840b64 (diff)
downloadRustAndDust-524f0eacefb4b72cff034eac717bc270e43b6c6e.zip
RustAndDust-524f0eacefb4b72cff034eac717bc270e43b6c6e.tar.gz
BattleHeadToHead: use is(Army) instead os isEnemey(Army)
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java4
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 {