diff options
Diffstat (limited to 'src/ch/epfl')
37 files changed, 58 insertions, 0 deletions
diff --git a/src/ch/epfl/maze/graphics/Animation.java b/src/ch/epfl/maze/graphics/Animation.java index a00b6b2..497d417 100644 --- a/src/ch/epfl/maze/graphics/Animation.java +++ b/src/ch/epfl/maze/graphics/Animation.java | |||
@@ -20,6 +20,7 @@ import java.util.TreeMap; | |||
20 | * Handles the animation of a {@code Simulation} by extrapolating the positions | 20 | * Handles the animation of a {@code Simulation} by extrapolating the positions |
21 | * of animals. | 21 | * of animals. |
22 | * | 22 | * |
23 | * @author EPFL | ||
23 | * @author Pacien TRAN-GIRARD | 24 | * @author Pacien TRAN-GIRARD |
24 | */ | 25 | */ |
25 | public final class Animation { | 26 | public final class Animation { |
diff --git a/src/ch/epfl/maze/graphics/Display.java b/src/ch/epfl/maze/graphics/Display.java index baacefa..a0c37f4 100644 --- a/src/ch/epfl/maze/graphics/Display.java +++ b/src/ch/epfl/maze/graphics/Display.java | |||
@@ -16,6 +16,8 @@ import java.util.Map; | |||
16 | 16 | ||
17 | /** | 17 | /** |
18 | * Handles the display of a {@code Simulation} on a window. | 18 | * Handles the display of a {@code Simulation} on a window. |
19 | * | ||
20 | * @author EPFL | ||
19 | */ | 21 | */ |
20 | public final class Display implements Runnable { | 22 | public final class Display implements Runnable { |
21 | 23 | ||
diff --git a/src/ch/epfl/maze/graphics/GraphicComponent.java b/src/ch/epfl/maze/graphics/GraphicComponent.java index 44b4b1f..e63b145 100644 --- a/src/ch/epfl/maze/graphics/GraphicComponent.java +++ b/src/ch/epfl/maze/graphics/GraphicComponent.java | |||
@@ -12,6 +12,8 @@ import java.awt.image.ImageObserver; | |||
12 | 12 | ||
13 | /** | 13 | /** |
14 | * Graphic component of an animal that will be drawn by an {@link Animation}. | 14 | * Graphic component of an animal that will be drawn by an {@link Animation}. |
15 | * | ||
16 | * @author EPFL | ||
15 | */ | 17 | */ |
16 | public final class GraphicComponent { | 18 | public final class GraphicComponent { |
17 | 19 | ||
diff --git a/src/ch/epfl/maze/main/Console.java b/src/ch/epfl/maze/main/Console.java index 931bec4..0c273e1 100644 --- a/src/ch/epfl/maze/main/Console.java +++ b/src/ch/epfl/maze/main/Console.java | |||
@@ -21,6 +21,8 @@ import java.util.Map; | |||
21 | /** | 21 | /** |
22 | * Mini-project main program that will run the simulations multiple times and | 22 | * Mini-project main program that will run the simulations multiple times and |
23 | * show statistics on the console. | 23 | * show statistics on the console. |
24 | * | ||
25 | * @author EPFL | ||
24 | */ | 26 | */ |
25 | public class Console { | 27 | public class Console { |
26 | 28 | ||
diff --git a/src/ch/epfl/maze/main/Program.java b/src/ch/epfl/maze/main/Program.java index 043f7e5..347eace 100644 --- a/src/ch/epfl/maze/main/Program.java +++ b/src/ch/epfl/maze/main/Program.java | |||
@@ -16,6 +16,8 @@ import ch.epfl.maze.util.Vector2D; | |||
16 | 16 | ||
17 | /** | 17 | /** |
18 | * Mini-project main program that will run the simulations on a {@code Display}. | 18 | * Mini-project main program that will run the simulations on a {@code Display}. |
19 | * | ||
20 | * @author EPFL | ||
19 | */ | 21 | */ |
20 | public class Program { | 22 | public class Program { |
21 | 23 | ||
diff --git a/src/ch/epfl/maze/physical/Animal.java b/src/ch/epfl/maze/physical/Animal.java index 0079d11..3697c32 100644 --- a/src/ch/epfl/maze/physical/Animal.java +++ b/src/ch/epfl/maze/physical/Animal.java | |||
@@ -7,6 +7,7 @@ import ch.epfl.maze.util.Vector2D; | |||
7 | * Animal inside a {@code World} that can move depending on the available | 7 | * Animal inside a {@code World} that can move depending on the available |
8 | * choices it has at its position. | 8 | * choices it has at its position. |
9 | * | 9 | * |
10 | * @author EPFL | ||
10 | * @author Pacien TRAN-GIRARD | 11 | * @author Pacien TRAN-GIRARD |
11 | */ | 12 | */ |
12 | abstract public class Animal { | 13 | abstract public class Animal { |
diff --git a/src/ch/epfl/maze/physical/Daedalus.java b/src/ch/epfl/maze/physical/Daedalus.java index 8018b66..4670064 100644 --- a/src/ch/epfl/maze/physical/Daedalus.java +++ b/src/ch/epfl/maze/physical/Daedalus.java | |||
@@ -9,6 +9,7 @@ import java.util.stream.Stream; | |||
9 | * Daedalus in which predators hunt preys. Once a prey has been caught by a | 9 | * Daedalus in which predators hunt preys. Once a prey has been caught by a |
10 | * predator, it will be removed from the daedalus. | 10 | * predator, it will be removed from the daedalus. |
11 | * | 11 | * |
12 | * @author EPFL | ||
12 | * @author Pacien TRAN-GIRARD | 13 | * @author Pacien TRAN-GIRARD |
13 | */ | 14 | */ |
14 | public final class Daedalus extends World { | 15 | public final class Daedalus extends World { |
diff --git a/src/ch/epfl/maze/physical/Maze.java b/src/ch/epfl/maze/physical/Maze.java index 51b9811..d3ba645 100644 --- a/src/ch/epfl/maze/physical/Maze.java +++ b/src/ch/epfl/maze/physical/Maze.java | |||
@@ -8,6 +8,7 @@ import java.util.List; | |||
8 | * Every animal added will have its position set to the starting point. The | 8 | * Every animal added will have its position set to the starting point. The |
9 | * animal is removed from the maze when it finds the exit. | 9 | * animal is removed from the maze when it finds the exit. |
10 | * | 10 | * |
11 | * @author EPFL | ||
11 | * @author Pacien TRAN-GIRARD | 12 | * @author Pacien TRAN-GIRARD |
12 | */ | 13 | */ |
13 | public final class Maze extends World { | 14 | public final class Maze extends World { |
diff --git a/src/ch/epfl/maze/physical/Predator.java b/src/ch/epfl/maze/physical/Predator.java index 7d30ce6..0b20ca0 100644 --- a/src/ch/epfl/maze/physical/Predator.java +++ b/src/ch/epfl/maze/physical/Predator.java | |||
@@ -6,6 +6,7 @@ import ch.epfl.maze.util.Vector2D; | |||
6 | /** | 6 | /** |
7 | * Predator that kills a prey when they meet with each other in the labyrinth. | 7 | * Predator that kills a prey when they meet with each other in the labyrinth. |
8 | * | 8 | * |
9 | * @author EPFL | ||
9 | * @author Pacien TRAN-GIRARD | 10 | * @author Pacien TRAN-GIRARD |
10 | */ | 11 | */ |
11 | abstract public class Predator extends ProbabilisticAnimal { | 12 | abstract public class Predator extends ProbabilisticAnimal { |
diff --git a/src/ch/epfl/maze/physical/Prey.java b/src/ch/epfl/maze/physical/Prey.java index 1f5225f..26fe92b 100644 --- a/src/ch/epfl/maze/physical/Prey.java +++ b/src/ch/epfl/maze/physical/Prey.java | |||
@@ -6,6 +6,7 @@ import ch.epfl.maze.util.Vector2D; | |||
6 | /** | 6 | /** |
7 | * Prey that is killed by a predator when they meet each other in the labyrinth. | 7 | * Prey that is killed by a predator when they meet each other in the labyrinth. |
8 | * | 8 | * |
9 | * @author EPFL | ||
9 | * @author Pacien TRAN-GIRARD | 10 | * @author Pacien TRAN-GIRARD |
10 | */ | 11 | */ |
11 | abstract public class Prey extends ProbabilisticAnimal { | 12 | abstract public class Prey extends ProbabilisticAnimal { |
diff --git a/src/ch/epfl/maze/physical/World.java b/src/ch/epfl/maze/physical/World.java index 9afbd5e..7d33472 100644 --- a/src/ch/epfl/maze/physical/World.java +++ b/src/ch/epfl/maze/physical/World.java | |||
@@ -10,6 +10,7 @@ import java.util.List; | |||
10 | * World that is represented by a labyrinth of tiles in which an {@code Animal} | 10 | * World that is represented by a labyrinth of tiles in which an {@code Animal} |
11 | * can move. | 11 | * can move. |
12 | * | 12 | * |
13 | * @author EPFL | ||
13 | * @author Pacien TRAN-GIRARD | 14 | * @author Pacien TRAN-GIRARD |
14 | */ | 15 | */ |
15 | public abstract class World { | 16 | public abstract class World { |
diff --git a/src/ch/epfl/maze/physical/pacman/Blinky.java b/src/ch/epfl/maze/physical/pacman/Blinky.java index b3ac64e..4e8c4a0 100644 --- a/src/ch/epfl/maze/physical/pacman/Blinky.java +++ b/src/ch/epfl/maze/physical/pacman/Blinky.java | |||
@@ -8,6 +8,7 @@ import ch.epfl.maze.util.Vector2D; | |||
8 | /** | 8 | /** |
9 | * Red ghost from the Pac-Man game, chases directly its target. | 9 | * Red ghost from the Pac-Man game, chases directly its target. |
10 | * | 10 | * |
11 | * @author EPFL | ||
11 | * @author Pacien TRAN-GIRARD | 12 | * @author Pacien TRAN-GIRARD |
12 | */ | 13 | */ |
13 | public class Blinky extends GhostPredator { | 14 | public class Blinky extends GhostPredator { |
diff --git a/src/ch/epfl/maze/physical/pacman/Clyde.java b/src/ch/epfl/maze/physical/pacman/Clyde.java index 7e8bdd7..40089db 100644 --- a/src/ch/epfl/maze/physical/pacman/Clyde.java +++ b/src/ch/epfl/maze/physical/pacman/Clyde.java | |||
@@ -9,6 +9,7 @@ import ch.epfl.maze.util.Vector2D; | |||
9 | * Orange ghost from the Pac-Man game, alternates between direct chase if far | 9 | * Orange ghost from the Pac-Man game, alternates between direct chase if far |
10 | * from its target and SCATTER if close. | 10 | * from its target and SCATTER if close. |
11 | * | 11 | * |
12 | * @author EPFL | ||
12 | * @author Pacien TRAN-GIRARD | 13 | * @author Pacien TRAN-GIRARD |
13 | */ | 14 | */ |
14 | public class Clyde extends GhostPredator { | 15 | public class Clyde extends GhostPredator { |
diff --git a/src/ch/epfl/maze/physical/pacman/Inky.java b/src/ch/epfl/maze/physical/pacman/Inky.java index de0466d..05c712c 100644 --- a/src/ch/epfl/maze/physical/pacman/Inky.java +++ b/src/ch/epfl/maze/physical/pacman/Inky.java | |||
@@ -11,6 |