From bda6db0eb45b4fb10d9644d9b7bf2699e17a0e5d Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 24 Nov 2015 15:03:04 +0100 Subject: Keep method compatibility for tests --- src/ch/epfl/maze/tests/AnimalTest.java | 2 +- src/ch/epfl/maze/tests/GhostsTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ch/epfl/maze/tests') diff --git a/src/ch/epfl/maze/tests/AnimalTest.java b/src/ch/epfl/maze/tests/AnimalTest.java index 0b02442..1fd8943 100644 --- a/src/ch/epfl/maze/tests/AnimalTest.java +++ b/src/ch/epfl/maze/tests/AnimalTest.java @@ -79,7 +79,7 @@ public class AnimalTest extends TestCase { } @Override - public Direction move(Set choices) { + public Direction move(Direction[] choices) { return null; } diff --git a/src/ch/epfl/maze/tests/GhostsTest.java b/src/ch/epfl/maze/tests/GhostsTest.java index c6970b1..35dddbf 100644 --- a/src/ch/epfl/maze/tests/GhostsTest.java +++ b/src/ch/epfl/maze/tests/GhostsTest.java @@ -128,7 +128,7 @@ public class GhostsTest extends TestCase { } @Override - public Direction move(Set choices, Daedalus daedalus) { + public Direction move(Direction[] choices, Daedalus daedalus) { if (mMoves) { return getPosition().getX() % 2 == 0 ? Direction.RIGHT : Direction.LEFT; } -- cgit v1.2.3