summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-02 00:21:51 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-02 00:21:51 +0100
commit834f28f9d5ff214a1eacbebb878551a7de6c6d5e (patch)
tree3463a6f500f55a5653298f24e4801875fbba2c1e
parenta0ee17a3ec222864da7d99dd5150069b33d4bad9 (diff)
downloadRustAndDust-834f28f9d5ff214a1eacbebb878551a7de6c6d5e.zip
RustAndDust-834f28f9d5ff214a1eacbebb878551a7de6c6d5e.tar.gz
Ctrl: fix battle.checkVictory()
-rw-r--r--core/src/ch/asynk/tankontank/game/Ctrl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Ctrl.java b/core/src/ch/asynk/tankontank/game/Ctrl.java
index 9c11472..07f6a2c 100644
--- a/core/src/ch/asynk/tankontank/game/Ctrl.java
+++ b/core/src/ch/asynk/tankontank/game/Ctrl.java
@@ -97,10 +97,10 @@ public class Ctrl implements Disposable
private void nextPlayer()
{
+ player.turnEnd();
if (battle.checkVictory(this)) {
- // TODO goto victory State
+ System.err.println("TODO " + player + " has won !!!!!!!!!!!");
}
- player.turnEnd();
Player tmp = player;
player = opponent;
opponent = tmp;