summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-18 21:37:34 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-18 21:37:34 +0100
commitb3ee6b0badf91e521797483cbd20cc51b9117a83 (patch)
tree7f07eb30d211b0c8a678f5c32cbb5fef1a9ff83d /core
parente60b3d647b9eff905977fd9f5a7760ce0b0113ea (diff)
downloadRustAndDust-b3ee6b0badf91e521797483cbd20cc51b9117a83.zip
RustAndDust-b3ee6b0badf91e521797483cbd20cc51b9117a83.tar.gz
Board: remove useless setPawnOnto(... , float)
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Board.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java
index 5ec1210..ffc26cc 100644
--- a/core/src/ch/asynk/tankontank/engine/Board.java
+++ b/core/src/ch/asynk/tankontank/engine/Board.java
@@ -408,17 +408,12 @@ public abstract class Board implements Disposable, Animation
public Pawn setPawnOnto(Pawn pawn, Move move)
{
pawn.move(move);
- return setPawnOnto(pawn, move.to, move.orientation.r());
+ return setPawnOnto(pawn, move.to, move.orientation);
}
public Pawn setPawnOnto(Pawn pawn, Tile tile, Orientation o)
{
- return setPawnOnto(pawn, tile, o.r());
- }
-
- public Pawn setPawnOnto(Pawn pawn, Tile tile, float r)
- {
- pawn.setOnTile(tile, r);
+ pawn.setOnTile(tile, o.r());
pushPawnOnto(pawn, tile);
return pawn;
}