summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Pawn.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java
index c7d8b26..049ff3e 100644
--- a/core/src/ch/asynk/tankontank/engine/Pawn.java
+++ b/core/src/ch/asynk/tankontank/engine/Pawn.java
@@ -157,6 +157,16 @@ public abstract class Pawn implements Moveable, Disposable
move.reset();
}
+ public void enterBoard(Tile to, Orientation o)
+ {
+ move.to = to;
+ move.from = null;
+ move.entryMove = true;
+ move.orientation = o;
+ move.cost = to.costFrom(this, o);
+ move();
+ }
+
public boolean isEnemy(Faction other)
{
return faction.isEnemy(other);