Class MapGenerator

java.lang.Object
com.mg105.use_cases.map.MapGenerator
All Implemented Interfaces:
MapGeneratorInterface

public class MapGenerator extends Object implements MapGeneratorInterface
MapGenerator generates the map

If given more time some length of this class could be refactored into factories, but that would only reduce the line count (and complexity) by less than 10%.

Alas, this is just a complex algorithm and must necessarily be somewhat long.

  • Constructor Details

    • MapGenerator

      public MapGenerator(@NotNull @NotNull GameState state)
      Creates a new MapGenerator that acts on a GameState.
      Parameters:
      state - the game state.
    • MapGenerator

      public MapGenerator(@NotNull @NotNull GameState state, @NotNull @NotNull Random random)
      Create a new MapGenerator that acts on a GameState
      Parameters:
      state - the game state.
      random - the random number generator.
  • Method Details