summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Board.java4
-rw-r--r--core/src/ch/asynk/tankontank/engine/Pawn.java6
2 files changed, 4 insertions, 6 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java
index 9300d73..e765ab0 100644
--- a/core/src/ch/asynk/tankontank/engine/Board.java
+++ b/core/src/ch/asynk/tankontank/engine/Board.java
@@ -444,7 +444,7 @@ public abstract class Board implements Disposable
seq.addAnimation(whenDone);
addAnimation(seq);
- pawn.move(possiblePaths.pathCost(0));
+ pawn.move();
}
protected void rotatePawn(final Pawn pawn, Orientation o, RunnableAnimation whenDone)
@@ -457,7 +457,7 @@ public abstract class Board implements Disposable
seq.addAnimation(whenDone);
addAnimation(seq);
- pawn.rotate(o);
+ pawn.move();
}
protected void revertLastPawnMove(final Pawn pawn, RunnableAnimation whenDone)
diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java
index 3d0b341..d5ed8fe 100644
--- a/core/src/ch/asynk/tankontank/engine/Pawn.java
+++ b/core/src/ch/asynk/tankontank/engine/Pawn.java
@@ -117,10 +117,8 @@ public abstract class Pawn implements Moveable, Disposable
public abstract boolean canAttack(Pawn other);
public abstract boolean canAssistAttackWithoutLos();
- public abstract void enter(int cost);
- public abstract void move(int cost);
- public abstract void rotate(Orientation o);
- public abstract void attack(Pawn target);
+ public abstract void move();
+ public abstract void attack();
public abstract void revertLastMove();