Class BuildablesFactory
java.lang.Object
com.csse3200.game.entities.factories.BuildablesFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PlaceableEntitycreateCustomTurret(TurretType type, Entity player) static PlaceableEntitycreateGate(Entity player) Creates a gate which can be placed on the map.static PlaceableEntitycreateWall(WallType type, Entity player) Creates a wall which can be placed on the map.
-
Constructor Details
-
BuildablesFactory
public BuildablesFactory()
-
-
Method Details
-
createWall
Creates a wall which can be placed on the map.- Parameters:
type- the type of wall to create.- Returns:
- The created Wall entity.
-
createCustomTurret
-
createGate
Creates a gate which can be placed on the map.- Parameters:
player- the player which can pass through the gate.- Returns:
- The created Wall entity.
-