Class ResourceGenerator

java.lang.Object
com.deco2800.game.areas.MapGenerator.ResourceGenerator

public class ResourceGenerator extends Object
Responsible for the procedural placement of a static collection of resources around the game map
  • Constructor Details

    • ResourceGenerator

      public ResourceGenerator(MapGenerator mg)
      Constructs a new ResourceGenerator, provided the game's MapGenerator
      Parameters:
      mg - The game's MapGenerator object
  • Method Details

    • resourceSetup

      public void resourceSetup()
      Initialises the resource generator with the current game terrain map and city details
    • getResources

      public List<ResourceSpecification> getResources()
      Returns the list of resources - which contain their map placements.
      Returns:
      list of resources