summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-08 12:04:10 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-08 12:04:10 +0100
commit6f6c34acd36d025634fe2cff399c2e366fd85e98 (patch)
treed200512adbd4575efd585a7f28dfdda8353fe67c /core/src/ch/asynk/rustanddust
parentf9b11d9db9ff9b3c7c917490f16c9c6e5da7c92e (diff)
downloadRustAndDust-6f6c34acd36d025634fe2cff399c2e366fd85e98.zip
RustAndDust-6f6c34acd36d025634fe2cff399c2e366fd85e98.tar.gz
Ctrl: use map.unitsSize(UnitType)
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Ctrl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java
index 8e05dad..faa2bc7 100644
--- a/core/src/ch/asynk/rustanddust/game/Ctrl.java
+++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java
@@ -6,6 +6,7 @@ import com.badlogic.gdx.math.Vector3;
import ch.asynk.rustanddust.RustAndDust;
import ch.asynk.rustanddust.ui.Position;
+import ch.asynk.rustanddust.game.Map.UnitType;
import ch.asynk.rustanddust.game.State.StateType;
import ch.asynk.rustanddust.game.states.StateSelect;
import ch.asynk.rustanddust.game.states.StateMove;
@@ -165,7 +166,7 @@ public class Ctrl implements Disposable
if (nextState == StateType.DONE) {
map.actionDone();
- if (map.activatedUnits.size() > 0) {
+ if (map.unitsSize(UnitType.ACTIVATED) > 0) {
RustAndDust.debug("Ctrl", "burn down 1AP");
hud.notify("1 Action Point burnt", 0.6f, Position.BOTTOM_CENTER, false);
player.burnDownOneAp();