summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-21 17:00:02 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-21 17:00:02 +0100
commit9d95b1ae5a6b5fe456b71616a5a8e8c9ad9025a2 (patch)
tree296fdbea272c1b512536e29d79fbc0f8f2a95c98 /core/src
parenta2dcd60251ba6c353e9dbb9c163047d40fb9955c (diff)
downloadRustAndDust-9d95b1ae5a6b5fe456b71616a5a8e8c9ad9025a2.zip
RustAndDust-9d95b1ae5a6b5fe456b71616a5a8e8c9ad9025a2.tar.gz
Ctrl notify Map with actionDone()
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/Ctrl.java1
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java4
2 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 1a71725..3db444b 100644
--- a/core/src/ch/asynk/tankontank/game/Ctrl.java
+++ b/core/src/ch/asynk/tankontank/game/Ctrl.java
@@ -163,6 +163,7 @@ public class Ctrl implements Disposable
StateType nextState = this.state.done();
if (nextState == StateType.DONE) {
+ map.actionDone();
if (map.activatedUnits.size() > 0) {
TankOnTank.debug("burn down 1AP");
player.burnDownOneAp();
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index cb594f7..878a7e3 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -177,6 +177,10 @@ public abstract class Map extends Board
// ACTIONS
+ public void actionDone()
+ {
+ }
+
public boolean enterBoard(Unit unit, Hex to, int allowedMoves)
{
Orientation entry = findBestEntry(unit, to, allowedMoves);