diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-10 09:03:57 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-10 09:03:57 +0200 |
commit | c1a077c89c726ff239c9e5a502f04e7898c59554 (patch) | |
tree | 3f70d915d6bb55b7665038261bb0f56d4204013c | |
parent | 1cd3ab201454b5e09b7268da55f54c604e5444cd (diff) | |
download | RustAndDust-c1a077c89c726ff239c9e5a502f04e7898c59554.zip RustAndDust-c1a077c89c726ff239c9e5a502f04e7898c59554.tar.gz |
update tests according to the latest Pawn abstarcts declaration
-rw-r--r-- | core/test/ch/asynk/tankontank/Helpers.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/core/test/ch/asynk/tankontank/Helpers.java b/core/test/ch/asynk/tankontank/Helpers.java index ab8e5db..6cda75f 100644 --- a/core/test/ch/asynk/tankontank/Helpers.java +++ b/core/test/ch/asynk/tankontank/Helpers.java @@ -24,15 +24,24 @@ public class Helpers public int getMovementPoints() { return mvt; } public int getRoadMarchBonus() { return 1; } + public int getAngleOfAttack() { return 0; } + public int getAttackRangeFrom(Tile tile) { return 3; } + public boolean isHq() { return true; } public boolean isUnit() { return true; } public boolean isEnemy(Pawn other) { return true; } + public boolean canMove() { return true; } public boolean canRotate() { return true; } public boolean canAttack() { return true; } public boolean canAttack(Pawn other) { return true; } - public int getAngleOfAttack() { return 0; } - public int getAttackRangeFrom(Tile tile) { return 3; } + + public void move(int cost) { } + public void rotate(Orientation o) { } + public void attack(Pawn target) { } + + public void reset() { } + public void revertLastMove() { } } public static class FakeTile extends Tile |