Class ResourceGenerator
java.lang.Object
com.deco2800.game.areas.MapGenerator.ResourceGenerator
Responsible for the procedural placement of a static collection of resources around the game map
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new ResourceGenerator, provided the game's MapGenerator -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of resources - which contain their map placements.void
Initialises the resource generator with the current game terrain map and city details
-
Constructor Details
-
ResourceGenerator
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
Returns the list of resources - which contain their map placements.- Returns:
- list of resources
-