summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-12 01:59:35 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-12 01:59:35 +0200
commitccffa8b93bcf1a50b2f6e3b84c44c30df1b7e7ff (patch)
tree080113b8533bd500dd12b884589a4f6a29e2ae79 /core/src/ch/asynk/tankontank
parent176ca4399b902a723db12bb6af85d0550dd2d90a (diff)
downloadRustAndDust-ccffa8b93bcf1a50b2f6e3b84c44c30df1b7e7ff.zip
RustAndDust-ccffa8b93bcf1a50b2f6e3b84c44c30df1b7e7ff.tar.gz
Board: setPawnAt returns pawn
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-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)