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/Board.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java
index 40737ca..e5bd302 100644
--- a/core/src/ch/asynk/tankontank/engine/Board.java
+++ b/core/src/ch/asynk/tankontank/engine/Board.java
@@ -497,11 +497,12 @@ public abstract class Board implements Disposable
return pawn.getPosAt(center, pos);
}
- public void setPawnAt(Pawn pawn, GridPoint2 coords, Orientation o)
+ public Pawn setPawnAt(Pawn pawn, GridPoint2 coords, Orientation o)
{
Vector2 pos = getPawnPosAt(pawn, coords, null);
pawn.setPosition(pos.x, pos.y, o.r());
pushPawnAt(pawn, coords);
+ return pawn;
}
protected void movePawn(final Pawn pawn, int cost, ArrayList<Vector3> path, RunnableAnimation whenDone)