Class Labyrinth.Builder

java.lang.Object
org.progettoedids.labyrinth.Labyrinth.Builder
Enclosing class:
Labyrinth

public static class Labyrinth.Builder extends Object
It's the class responsible for Building a fully configured Labyrinth in a valid state.

It can be obtained using the Labyrinth method newBuilder() and then needs to be properly configured in order for the Labyrinth to be built. A "properly configured" Labyrinth.Builder must verify the following conditions: - It has a name set - It has a difficulty set - It has a random number generator seed set - It has its dimensions set - A number of Room(s) all located at different Position(s) must be added. Such a number must match Dimensions.getWidth()*Dimensions.getHeight() of the Dimensions set - One and only one Player has been added