diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-05 16:41:08 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-05 16:41:08 +0100 |
commit | cc3af93a06f86b60f6f7265f7fca10b46b3fdd7e (patch) | |
tree | ccecefcd5276524b01b3d78a84130da0e082bf4f /core/src/ch/asynk/tankontank/engine | |
parent | 6edb6023b2bf9ce6087a2a55281b93e9c515aa7e (diff) | |
download | RustAndDust-cc3af93a06f86b60f6f7265f7fca10b46b3fdd7e.zip RustAndDust-cc3af93a06f86b60f6f7265f7fca10b46b3fdd7e.tar.gz |
Pawn: enter/rotate/move/attack -> move() and attack()
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 4 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Pawn.java | 6 |
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(); |