Class DeathZoneFactory

java.lang.Object
com.csse3200.game.entities.factories.DeathZoneFactory

public class DeathZoneFactory extends Object
Factory to create DeathZone entities (objects that kill the player (and possibly enemies)).
  • Method Details

    • createDeathZone

      public static Entity 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.