diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-29 19:12:02 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-29 19:12:02 +0200 |
commit | bb7da20e19ba7fc74a9b751530c3a8280c0c1be0 (patch) | |
tree | 56f6a7489b3209008e2ffc5a09cb0f5d14111873 | |
parent | 2b2b3a210a3c259f7b461ec492ad7521817da506 (diff) | |
download | RustAndDust-bb7da20e19ba7fc74a9b751530c3a8280c0c1be0.zip RustAndDust-bb7da20e19ba7fc74a9b751530c3a8280c0c1be0.tar.gz |
StateReplay: use Order.cost to be aware of action completness
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/states/StateReplay.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateReplay.java b/core/src/ch/asynk/rustanddust/game/states/StateReplay.java index 74cd1b4..38cf757 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateReplay.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateReplay.java @@ -81,6 +81,7 @@ public class StateReplay extends StateCommon @Override public StateType execute() { - return StateType.DONE; + // called at the end of animation DONE -> burn 1 AP + return ((order.cost == 0) ? StateType.REPLAY : StateType.DONE); } } |