From bc477506342411e9156b3230d847cb92bcb8e5f9 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 24 Nov 2015 11:11:17 +0100 Subject: Reformat code --- src/ch/epfl/maze/util/LabyrinthGenerator.java | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'src/ch/epfl/maze/util/LabyrinthGenerator.java') diff --git a/src/ch/epfl/maze/util/LabyrinthGenerator.java b/src/ch/epfl/maze/util/LabyrinthGenerator.java index 3e83ec5..9e47c25 100644 --- a/src/ch/epfl/maze/util/LabyrinthGenerator.java +++ b/src/ch/epfl/maze/util/LabyrinthGenerator.java @@ -10,7 +10,6 @@ import java.util.regex.Pattern; /** * Generates a set of pre-computed labyrinth structures */ - public final class LabyrinthGenerator { /** @@ -18,7 +17,6 @@ public final class LabyrinthGenerator { * * @return A small labyrinth */ - public static int[][] getSmall() { int[][] labyrinth = { {1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1}, @@ -42,7 +40,6 @@ public final class LabyrinthGenerator { * * @return A medium labyrinth */ - public static int[][] getMedium() { int[][] labyrinth = { {1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, @@ -106,7 +103,6 @@ public final class LabyrinthGenerator { * * @return The Pac-Man level */ - public static int[][] getPacMan() { int[][] labyrinth = { {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, @@ -142,7 +138,6 @@ public final class LabyrinthGenerator { * * @return One of the Ms. Pac-Man levels */ - public static int[][] getMsPacMan() { int[][] labyrinth = { {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, @@ -179,7 +174,6 @@ public final class LabyrinthGenerator { * * @return A labyrinth multiply connected */ - public static int[][] getMultiplyConnected() { int[][] labyrinth = { {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,}, @@ -205,7 +199,6 @@ public final class LabyrinthGenerator { * * @return A maze for debugging the Mouse */ - public static int[][] getDebugMouse() { int[][] labyrinth = { {1, 1, 1, 1, 1, 1, 1}, @@ -225,7 +218,6 @@ public final class LabyrinthGenerator { * * @return A maze for debugging the Hamster */ - public static int[][] getDebugHamster() { int[][] labyrinth = { {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, @@ -245,7 +237,6 @@ public final class LabyrinthGenerator { * * @return A maze for debugging the Monkey */ - public static int[][] getDebugMonkey() { int[][] labyrinth = { {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, @@ -266,7 +257,6 @@ public final class LabyrinthGenerator { * * @return A maze for debugging the Bear */ - public static int[][] getDebugBear1() { int[][] labyrinth = { {1, 1, 1, 2, 1, 1, 1,}, @@ -286,7 +276,6 @@ public final class LabyrinthGenerator { * * @return A maze for debugging the Bear */ - public static int[][] getDebugBear2() { int[][] labyrinth = { {1, 2, 1, 1}, @@ -305,7 +294,6 @@ public final class LabyrinthGenerator { * * @return A maze for debugging the Panda */ - public static int[][] getDebugPanda1() { int[][] labyrinth = { {1, 1, 1, 2, 1, 1, 1}, @@ -324,7 +312,6 @@ public final class LabyrinthGenerator { * * @return A maze for debugging the Panda */ - public static int[][] getDebugPanda2() { int[][] labyrinth = { {1, 1, 1, 1, 1, 1, 1, 1, 1}, @@ -349,7 +336,6 @@ public final class LabyrinthGenerator { * * @return A maze to run with a Bear and a Monkey */ - public static int[][] getBearVsMonkey() { int[][] labyrinth = { {1, 1, 1, 3, 1, 1, 1}, @@ -368,7 +354,6 @@ public final class LabyrinthGenerator { * * @return A maze to run with a Panda and a Hamster */ - public static int[][] getPandaVsHamster() { int[][] labyrinth = { {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, @@ -394,7 +379,6 @@ public final class LabyrinthGenerator { * * @return A maze for debugging Blinky */ - public static int[][] getDebugBlinky() { int[][] labyrinth = { {1, 1, 1, 1, 1, 1, 1, 1}, @@ -414,7 +398,6 @@ public final class LabyrinthGenerator { * * @return A maze for debugging Pinky */ - public static int[][] getDebugPinky() { int[][] labyrinth = { {1, 1, 1, 1, 1, 1, 1, 1, 1}, @@ -432,7 +415,6 @@ public final class LabyrinthGenerator { * * @return A maze for debugging Inky */ - public static int[][] getDebugInky() { int[][] labyrinth = { {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, @@ -456,7 +438,6 @@ public final class LabyrinthGenerator { * * @return A maze for debugging Clyde */ - public static int[][] getDebugClyde() { int[][] labyrinth = { {1, 1, 1, 1, 1, 1, 1, 1, 1, 1,}, @@ -479,7 +460,6 @@ public final class LabyrinthGenerator { * @param filename The file location * @return Labyrinth structure parsed from a file */ - public static int[][] readFromFile(String filename) { File file = new File(filename); int[][] labyrinth = null; @@ -528,4 +508,5 @@ public final class LabyrinthGenerator { return labyrinth; } + } -- cgit v1.2.3