Class DefenceFactory

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

public class DefenceFactory extends Object
Factory class for creating defence entities (e.g., sling shooters). This class should not be instantiated — all methods and configuration are static utilities.
  • Method Details

    • createSlingShooter

      public static Entity createSlingShooter()
      Creates a fully configured Sling Shooter defence entity.

      The entity is composed of: - Base physics and collider setup - Stats loaded from the config file - Animation rendering and animation controller

      Returns:
      entity representing the slingshooter
    • createFurnace

      public static Entity createFurnace()
    • createBaseDefender

      public static Entity createBaseDefender()
      Creates a base defender entity with default physics and collider setup.
      Returns:
      entity with physics and collision components