Class DefenceFactory
java.lang.Object
com.csse3200.game.entities.factories.DefenceFactory
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
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
-
createBaseDefender
Creates a base defender entity with default physics and collider setup.- Returns:
- entity with physics and collision components
-