From 15ae5683367df9f32df301cfc66dcbe41d193208 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 24 Nov 2015 14:55:23 +0100 Subject: Implement copy for SpaceInvader A.I. --- src/ch/epfl/maze/physical/zoo/SpaceInvader.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ch/epfl/maze/physical/zoo/SpaceInvader.java b/src/ch/epfl/maze/physical/zoo/SpaceInvader.java index 7a3860e..2fd5dd3 100644 --- a/src/ch/epfl/maze/physical/zoo/SpaceInvader.java +++ b/src/ch/epfl/maze/physical/zoo/SpaceInvader.java @@ -44,8 +44,7 @@ public class SpaceInvader extends Animal { @Override public Animal copy() { - // TODO (bonus) - return null; + return new SpaceInvader(this.getPosition()); } } -- cgit v1.2.3