From 90bd766f361083f6fd9e39ff080c83fcc606832f Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sat, 21 Nov 2015 10:44:42 +0100 Subject: Reformat imported code --- src/ch/epfl/maze/physical/pacman/Blinky.java | 40 +++++++++++++--------------- src/ch/epfl/maze/physical/pacman/Clyde.java | 40 +++++++++++++--------------- src/ch/epfl/maze/physical/pacman/Inky.java | 40 +++++++++++++--------------- src/ch/epfl/maze/physical/pacman/PacMan.java | 29 ++++++++++---------- src/ch/epfl/maze/physical/pacman/Pinky.java | 40 +++++++++++++--------------- 5 files changed, 90 insertions(+), 99 deletions(-) (limited to 'src/ch/epfl/maze/physical/pacman') diff --git a/src/ch/epfl/maze/physical/pacman/Blinky.java b/src/ch/epfl/maze/physical/pacman/Blinky.java index 22ef16f..d70f444 100644 --- a/src/ch/epfl/maze/physical/pacman/Blinky.java +++ b/src/ch/epfl/maze/physical/pacman/Blinky.java @@ -8,32 +8,30 @@ import ch.epfl.maze.util.Vector2D; /** * Red ghost from the Pac-Man game, chases directly its target. - * */ public class Blinky extends Predator { - /** - * Constructs a Blinky with a starting position. - * - * @param position - * Starting position of Blinky in the labyrinth - */ + /** + * Constructs a Blinky with a starting position. + * + * @param position Starting position of Blinky in the labyrinth + */ - public Blinky(Vector2D position) { - super(position); - // TODO - } + public Blinky(Vector2D position) { + super(position); + // TODO + } - @Override - public Direction move(Direction[] choices, Daedalus daedalus) { - // TODO - return Direction.NONE; - } + @Override + public Direction move(Direction[] choices, Daedalus daedalus) { + // TODO + return Direction.NONE; + } - @Override - public Animal copy() { - // TODO - return null; - } + @Override + public Animal copy() { + // TODO + return null; + } } diff --git a/src/ch/epfl/maze/physical/pacman/Clyde.java b/src/ch/epfl/maze/physical/pacman/Clyde.java index 4da35d8..8b3fd20 100644 --- a/src/ch/epfl/maze/physical/pacman/Clyde.java +++ b/src/ch/epfl/maze/physical/pacman/Clyde.java @@ -9,32 +9,30 @@ import ch.epfl.maze.util.Vector2D; /** * Orange ghost from the Pac-Man game, alternates between direct chase if far * from its target and SCATTER if close. - * */ public class Clyde extends Predator { - /** - * Constructs a Clyde with a starting position. - * - * @param position - * Starting position of Clyde in the labyrinth - */ + /** + * Constructs a Clyde with a starting position. + * + * @param position Starting position of Clyde in the labyrinth + */ - public Clyde(Vector2D position) { - super(position); - // TODO - } + public Clyde(Vector2D position) { + super(position); + // TODO + } - @Override - public Direction move(Direction[] choices, Daedalus daedalus) { - // TODO - return Direction.NONE; - } + @Override + public Direction move(Direction[] choices, Daedalus daedalus) { + // TODO + return Direction.NONE; + } - @Override - public Animal copy() { - // TODO - return null; - } + @Override + public Animal copy() { + // TODO + return null; + } } diff --git a/src/ch/epfl/maze/physical/pacman/Inky.java b/src/ch/epfl/maze/physical/pacman/Inky.java index 87d9626..883c385 100644 --- a/src/ch/epfl/maze/physical/pacman/Inky.java +++ b/src/ch/epfl/maze/physical/pacman/Inky.java @@ -9,32 +9,30 @@ import ch.epfl.maze.util.Vector2D; /** * Blue ghost from the Pac-Man game, targets the result of two times the vector * from Blinky to its target. - * */ public class Inky extends Predator { - /** - * Constructs a Inky with a starting position. - * - * @param position - * Starting position of Inky in the labyrinth - */ + /** + * Constructs a Inky with a starting position. + * + * @param position Starting position of Inky in the labyrinth + */ - public Inky(Vector2D position) { - super(position); - // TODO - } + public Inky(Vector2D position) { + super(position); + // TODO + } - @Override - public Direction move(Direction[] choices, Daedalus daedalus) { - // TODO - return Direction.NONE; - } + @Override + public Direction move(Direction[] choices, Daedalus daedalus) { + // TODO + return Direction.NONE; + } - @Override - public Animal copy() { - // TODO - return null; - } + @Override + public Animal copy() { + // TODO + return null; + } } diff --git a/src/ch/epfl/maze/physical/pacman/PacMan.java b/src/ch/epfl/maze/physical/pacman/PacMan.java index 0bdd156..bb167af 100644 --- a/src/ch/epfl/maze/physical/pacman/PacMan.java +++ b/src/ch/epfl/maze/physical/pacman/PacMan.java @@ -8,25 +8,24 @@ import ch.epfl.maze.util.Vector2D; /** * Pac-Man character, from the famous game of the same name. - * */ public class PacMan extends Prey { - public PacMan(Vector2D position) { - super(position); - // TODO - } + public PacMan(Vector2D position) { + super(position); + // TODO + } - @Override - public Direction move(Direction[] choices, Daedalus daedalus) { - // TODO - return Direction.NONE; - } + @Override + public Direction move(Direction[] choices, Daedalus daedalus) { + // TODO + return Direction.NONE; + } - @Override - public Animal copy() { - // TODO - return null; - } + @Override + public Animal copy() { + // TODO + return null; + } } diff --git a/src/ch/epfl/maze/physical/pacman/Pinky.java b/src/ch/epfl/maze/physical/pacman/Pinky.java index 9a64a53..aaa2720 100644 --- a/src/ch/epfl/maze/physical/pacman/Pinky.java +++ b/src/ch/epfl/maze/physical/pacman/Pinky.java @@ -8,32 +8,30 @@ import ch.epfl.maze.util.Vector2D; /** * Pink ghost from the Pac-Man game, targets 4 squares in front of its target. - * */ public class Pinky extends Predator { - /** - * Constructs a Pinky with a starting position. - * - * @param position - * Starting position of Pinky in the labyrinth - */ + /** + * Constructs a Pinky with a starting position. + * + * @param position Starting position of Pinky in the labyrinth + */ - public Pinky(Vector2D position) { - super(position); - // TODO - } + public Pinky(Vector2D position) { + super(position); + // TODO + } - @Override - public Direction move(Direction[] choices, Daedalus daedalus) { - // TODO - return Direction.NONE; - } + @Override + public Direction move(Direction[] choices, Daedalus daedalus) { + // TODO + return Direction.NONE; + } - @Override - public Animal copy() { - // TODO - return null; - } + @Override + public Animal copy() { + // TODO + return null; + } } -- cgit v1.2.3