Class RandomMapGenerator

java.lang.Object
randomGenerators.map.MapGenerator
randomGenerators.map.RandomMapGenerator

public class RandomMapGenerator extends MapGenerator
This class generates random maps based on the MapGenerator abstract class. It provides functionality to generate both text-based and binary maps.
  • Field Details

    • fileType

      public static MapFileType fileType
      File type used in this run (not for this particular map file) - more only text, only binary, of combination. Specified in configuration settings.
  • Constructor Details

    • RandomMapGenerator

      public RandomMapGenerator()
      Constructs a RandomMapGenerator object. It initializes the necessary dependencies and generators based on the configuration settings.
  • Method Details

    • generateRandomMap

      public String generateRandomMap()
      If text only in configs is true, makes new text file. If that is not true, randomly choose to make text or binary file Generates a random map file, either text-based or binary, based on the configuration settings.
      Specified by:
      generateRandomMap in class MapGenerator
      Returns:
      The file path of the generated map file.