summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 26bc0b2..f077dd6 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -172,6 +172,11 @@ public abstract class Map extends Board
Orientation entry = findBestEntry(pawn, to, allowedMoves);
if (entry == Orientation.KEEP)
return false;
+ return enterBoard(pawn, to, entry);
+ }
+
+ public boolean enterBoard(Pawn pawn, Hex to, Orientation entry)
+ {
pawn.enterBoard(to, entry);
setPawnOnto(pawn, to, entry);
return true;