Class AreaFactory
- java.lang.Object
 - 
- bytemusketeers.heslingtonhustle.scene.AreaFactory
 
 
- 
public final class AreaFactory extends java.lang.ObjectTheAreaFactoryprovides a non-static factory for initialising particularAreaobjects, populated withInteractableobjects- Author:
 - ENG1 Team 23 (Cohort 3)
 - See Also:
 Area,Interactable
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private MetricControllermetricControllerTheMetricControllerbelonging to the parentalPlayScreen, generally used when registeringRunnableactions onInteractables in the createdAreaprivate PlayScreenplayScreen 
- 
Constructor Summary
Constructors Constructor Description AreaFactory(MetricController metricController, PlayScreen playScreen)Instantiates a newAreaFactorywith the given contextualMetricController 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AreacreateBedroomMap()Creates anAreaof the bedroom buildingAreacreateCSMap()Creates anAreaof the Ian Wand Computer Science buildingAreacreateOutdoorMap()Crates anAreaof the Campus East outdoors areaAreacreatePiazzaMap()Creates anAreaof the Piazza building 
 - 
 
- 
- 
Field Detail
- 
metricController
private final MetricController metricController
TheMetricControllerbelonging to the parentalPlayScreen, generally used when registeringRunnableactions onInteractables in the createdArea 
- 
playScreen
private final PlayScreen playScreen
- See Also:
 Interactable.interact()
 
 - 
 
- 
Constructor Detail
- 
AreaFactory
public AreaFactory(MetricController metricController, PlayScreen playScreen)
Instantiates a newAreaFactorywith the given contextualMetricController- Parameters:
 metricController- TheMetricControllerbelonging to the parentalScreen
 
 - 
 
- 
Method Detail
- 
createOutdoorMap
public Area createOutdoorMap() throws InvalidAreaException
Crates anAreaof the Campus East outdoors area- Returns:
 - The generated test map
 - Throws:
 InvalidAreaException
 
- 
createPiazzaMap
public Area createPiazzaMap() throws InvalidAreaException
Creates anAreaof the Piazza building- Returns:
 - The generated Piazza map
 - Throws:
 InvalidAreaException
 
- 
createCSMap
public Area createCSMap() throws InvalidAreaException
Creates anAreaof the Ian Wand Computer Science building- Returns:
 - The generated Computer Science building
 - Throws:
 InvalidAreaException
 
- 
createBedroomMap
public Area createBedroomMap() throws InvalidAreaException
Creates anAreaof the bedroom building- Returns:
 - The generated bedroom building
 - Throws:
 InvalidAreaException
 
 - 
 
 -