summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 66fa17c..351fd46 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -167,6 +167,19 @@ public abstract class Map extends Board
// ACTIONS
+ public void enterBoard(Pawn pawn, Hex to, Orientation o)
+ {
+ Orientation entry = findBestEntry(pawn, to, o);
+ pawn.enterBoard(to, entry);
+ setPawnOnto(pawn, to, o);
+ }
+
+ public void leaveBoard(Pawn pawn)
+ {
+ removePawn(pawn);
+ pawn.reset();
+ }
+
public void promote(Pawn pawn, Pawn with)
{
removePawn(pawn);