summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/GhostPredator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/maze/physical/GhostPredator.java')
-rw-r--r--src/ch/epfl/maze/physical/GhostPredator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ch/epfl/maze/physical/GhostPredator.java b/src/ch/epfl/maze/physical/GhostPredator.java
index 8188c00..5408bf6 100644
--- a/src/ch/epfl/maze/physical/GhostPredator.java
+++ b/src/ch/epfl/maze/physical/GhostPredator.java
@@ -122,7 +122,7 @@ abstract public class GhostPredator extends Predator {
122 /** 122 /**
123 * Calculates the Euclidean distance from the adjacent position at the given Direction to the target position. 123 * Calculates the Euclidean distance from the adjacent position at the given Direction to the target position.
124 * 124 *
125 * @param dir The adjacent Direction 125 * @param dir The adjacent Direction
126 * @param targetPosition The targeted position 126 * @param targetPosition The targeted position
127 * @return The Euclidean distance between the two positions 127 * @return The Euclidean distance between the two positions
128 */ 128 */
@@ -138,7 +138,7 @@ abstract public class GhostPredator extends Predator {
138 * Selects the best Direction in the given choices by minimizing the Euclidean distance to the targeted position. 138 * Selects the best Direction in the given choices by minimizing the Euclidean distance to the targeted position.
139 * 139 *
140 * @param targetPosition The targeted position 140 * @param targetPosition The targeted position
141 * @param choices An array of Direction choices 141 * @param choices An array of Direction choices
142 * @return An array of optimal Direction choices 142 * @return An array of optimal Direction choices
143 */ 143 */
144 private Direction[] selectBestPaths(Vector2D targetPosition, Direction[] choices) { 144 private Direction[] selectBestPaths(Vector2D targetPosition, Direction[] choices) {