Interface MapGenerator

  • All Known Implementing Classes:
    SimpleMapGenerator

    public interface MapGenerator
    Creates maps and sets the starting locations for the players.
    • Method Detail

      • generateEmptyMap

        Map generateEmptyMap​(Game game,
                             int width,
                             int height,
                             LogBuilder lb)
        Create an empty map.
        Parameters:
        game - The Game to generate for.
        width - The map width.
        height - The map height.
        lb - A LogBuilder to log to.
        Returns:
        A new empty Map.
      • generateMap

        Map generateMap​(Game game,
                        Map importMap,
                        boolean generateEuropeanPlayerUnits,
                        LogBuilder lb)
        Creates the map with the current set options
        Parameters:
        game - The Game to generate for.
        importMap - An optional Map to import.
        generateEuropeanPlayerUnits - If true, then the european player units are generated.
        lb - A LogBuilder to log to.
        Returns:
        The new Map.