diff options
author | Pacien TRAN-GIRARD | 2015-11-24 11:11:17 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2015-11-24 11:11:17 +0100 |
commit | bc477506342411e9156b3230d847cb92bcb8e5f9 (patch) | |
tree | d952a5d14dccef38bfba3f8e27bfe10ea65d446a /src/ch/epfl/maze/physical/GhostPredator.java | |
parent | 903553fe9e03e4af75eb7f8547e08b480bc58ec4 (diff) | |
download | maze-solver-bc477506342411e9156b3230d847cb92bcb8e5f9.tar.gz |
Reformat code
Diffstat (limited to 'src/ch/epfl/maze/physical/GhostPredator.java')
-rw-r--r-- | src/ch/epfl/maze/physical/GhostPredator.java | 4 |
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) { |