Class BuildablesFactory
java.lang.Object
com.csse3200.game.entities.factories.BuildablesFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PlaceableEntity
createCustomTurret
(TurretType type, Entity player) static PlaceableEntity
createGate
(Entity player) Creates a gate which can be placed on the map.static PlaceableEntity
createWall
(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.
-