From c294cfcfc8757018c8a5c816d512a3343d2aa840 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 22 Nov 2015 17:11:05 +0100 Subject: Implement PacMan A.I. --- src/ch/epfl/maze/physical/pacman/PacMan.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/ch/epfl') diff --git a/src/ch/epfl/maze/physical/pacman/PacMan.java b/src/ch/epfl/maze/physical/pacman/PacMan.java index bb167af..ee1ee28 100644 --- a/src/ch/epfl/maze/physical/pacman/PacMan.java +++ b/src/ch/epfl/maze/physical/pacman/PacMan.java @@ -8,24 +8,23 @@ import ch.epfl.maze.util.Vector2D; /** * Pac-Man character, from the famous game of the same name. + * + * @author Pacien TRAN-GIRARD */ - public class PacMan extends Prey { public PacMan(Vector2D position) { super(position); - // TODO } @Override public Direction move(Direction[] choices, Daedalus daedalus) { - // TODO - return Direction.NONE; + return this.move(choices); } @Override public Animal copy() { - // TODO - return null; + return new PacMan(this.getPosition()); } + } -- cgit v1.2.3