diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-31 02:04:05 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-31 02:04:05 +0100 |
commit | 26a607e23671227861febdf8fa3e04ce9e3fa7c2 (patch) | |
tree | 3f506617ebb45c5ac2c9f49605680ff06eb3176e /core | |
parent | 20d918bb62eb6cb47e8950567d49db452dfd01e8 (diff) | |
download | RustAndDust-26a607e23671227861febdf8fa3e04ce9e3fa7c2.zip RustAndDust-26a607e23671227861febdf8fa3e04ce9e3fa7c2.tar.gz |
Ctrl: add processAction, called within Map.actionDone()
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Ctrl.java | 1 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Map.java | 1 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/ctrl/Solo.java | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java index 6443372..36aa96f 100644 --- a/core/src/ch/asynk/rustanddust/game/Ctrl.java +++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java @@ -47,6 +47,7 @@ public abstract class Ctrl implements Disposable private StateType stateAfterAnimation; public abstract void init(); + protected abstract void processAction(); protected abstract void processTurn(); public static Ctrl getCtrl(final RustAndDust game) diff --git a/core/src/ch/asynk/rustanddust/game/Map.java b/core/src/ch/asynk/rustanddust/game/Map.java index 2208448..87030b3 100644 --- a/core/src/ch/asynk/rustanddust/game/Map.java +++ b/core/src/ch/asynk/rustanddust/game/Map.java @@ -32,6 +32,7 @@ public abstract class Map extends Map4Orders public void actionDone() { + game.ctrl.processAction(); } public void turnDone() diff --git a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java index 9d5a20d..1a7a0af 100644 --- a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java +++ b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java @@ -18,5 +18,8 @@ public class Solo extends Ctrl } @Override + protected void processAction() { } + + @Override protected void processTurn() { } } |