From c1a077c89c726ff239c9e5a502f04e7898c59554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 10 Oct 2014 09:03:57 +0200 Subject: update tests according to the latest Pawn abstarcts declaration --- core/test/ch/asynk/tankontank/Helpers.java | 13 +++++++++++-- 1 file 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 -- cgit v1.1-2-g2b99