Package randomGenerators.map
Class RandomMapGenerator
java.lang.Object
randomGenerators.map.MapGenerator
randomGenerators.map.RandomMapGenerator
This class generates random maps based on the MapGenerator abstract class.
It provides functionality to generate both text-based and binary maps.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic MapFileTypeFile type used in this run (not for this particular map file) - more only text, only binary, of combination.Fields inherited from class randomGenerators.map.MapGenerator
mapCopyCount, mapCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf text only in configs is true, makes new text file.Methods inherited from class randomGenerators.map.MapGenerator
generateRandomMapCopyFileName, generateRandomMapFileName
-
Field Details
-
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
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:
generateRandomMapin classMapGenerator- Returns:
- The file path of the generated map file.
-