Class DeathZoneFactory
java.lang.Object
com.csse3200.game.entities.factories.DeathZoneFactory
Factory to create DeathZone entities (objects that kill the player (and possibly enemies)).
-
Method Summary
Modifier and TypeMethodDescriptionstatic Entity
Creates a basic death zone with configurable length.
-
Method Details
-
createDeathZone
Creates a basic death zone with configurable length.It is immovable and cannot be destroyed. On collision with player (or enemy), it fully damages the colliding entity, effectively killing them and resetting their position.
- Returns:
- the DeathZone Entity created.
-