diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-12 01:59:35 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-12 01:59:35 +0200 |
commit | ccffa8b93bcf1a50b2f6e3b84c44c30df1b7e7ff (patch) | |
tree | 080113b8533bd500dd12b884589a4f6a29e2ae79 | |
parent | 176ca4399b902a723db12bb6af85d0550dd2d90a (diff) | |
download | RustAndDust-ccffa8b93bcf1a50b2f6e3b84c44c30df1b7e7ff.zip RustAndDust-ccffa8b93bcf1a50b2f6e3b84c44c30df1b7e7ff.tar.gz |
Board: setPawnAt returns pawn
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 3 |
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) |