summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-18 23:22:27 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-18 23:22:27 +0100
commit828f856a9b6aed935fe8e50a892bb6dec7aaceb0 (patch)
tree09ec69b3eec17dad0c15897dca46908835104a8f /core/src/ch/asynk/tankontank/game
parent0eb2eae843b58fe45883b96874dc876a074df250 (diff)
downloadRustAndDust-828f856a9b6aed935fe8e50a892bb6dec7aaceb0.zip
RustAndDust-828f856a9b6aed935fe8e50a892bb6dec7aaceb0.tar.gz
PossiblePaths: add getExitMove()
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 7a28a70..35a4325 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -295,10 +295,7 @@ public abstract class Map extends Board
// unit.reset();
// }
- Move move = possiblePaths.getMove();
- move.setExit();
-
- movePawn(unit, move, notifyDoneAnimation(unit), objectives);
+ movePawn(unit, possiblePaths.getExitMove(), notifyDoneAnimation(unit), objectives);
return startMove(unit);
}