diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-09 14:54:01 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-09 14:54:01 +0100 |
commit | 5b93add487fc94a1019189b6d406fa7c6317da0a (patch) | |
tree | 19d1b93c496ae9a4c5ef877d2f1ab8166821c87f | |
parent | 639b08196704f1b73e1665d41db52ece172f85d6 (diff) | |
download | RustAndDust-5b93add487fc94a1019189b6d406fa7c6317da0a.zip RustAndDust-5b93add487fc94a1019189b6d406fa7c6317da0a.tar.gz |
StateDeployment: call Map.setOnBoard() remove Map.showOnBoard()
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/map/Map4Commands.java | 5 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/states/StateDeployment.java | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/map/Map4Commands.java b/core/src/ch/asynk/rustanddust/game/map/Map4Commands.java index 7bb6293..641107d 100644 --- a/core/src/ch/asynk/rustanddust/game/map/Map4Commands.java +++ b/core/src/ch/asynk/rustanddust/game/map/Map4Commands.java @@ -44,11 +44,6 @@ public abstract class Map4Commands extends Map3Animations // STATES ENTRY -> - public void showOnBoard(final Unit unit, Hex to, Orientation o) - { - setPawnOnto(unit, to, o); - } - public boolean setOnBoard(final Unit unit, Hex to, Orientation entry) { commands.dispose(unit); diff --git a/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java b/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java index d34d0dd..5b53f84 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java @@ -102,7 +102,7 @@ public class StateDeployment extends StateCommon selectedUnit = unit; selectedHex = upHex; ctrl.battle.getPlayer().reinforcement.remove(unit); - map.showOnBoard(unit, upHex, entryZone.orientation); + map.setOnBoard(unit, upHex, entryZone.orientation); deployedUnits.add(unit); entryZone.enable(Hex.AREA, false); showRotation(unit, upHex); |