summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/Ctrl.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Ctrl.java b/core/src/ch/asynk/tankontank/game/Ctrl.java
index 6dc1c44..78fdeba 100644
--- a/core/src/ch/asynk/tankontank/game/Ctrl.java
+++ b/core/src/ch/asynk/tankontank/game/Ctrl.java
@@ -86,6 +86,11 @@ public class Ctrl implements Disposable
map.dispose();
}
+ public Player getPlayer(Army army)
+ {
+ return (player.is(army) ? player : opponent);
+ }
+
public boolean isInAction()
{
return (state != selectState);