java.lang.Object
com.csse3200.game.entities.factories.characters.BossFactory

public class BossFactory extends Object
A factory class for creating Boss and NPC entities for the game. This factory defines behavior, physics, and rendering properties for Boss-3 and provides a base NPC creation method that includes movement and attack logic.
  • Constructor Details

    • BossFactory

      public BossFactory()
  • Method Details

    • createRobot

      public static Entity createRobot(Entity target)
    • createBoss2

      public static Entity createBoss2(Entity target)
    • createBoss3

      public static Entity createBoss3(Entity target)
      Creates a Boss-3 entity with combat stats, rendering, scaling, and physics collider. This boss is capable of wandering, chasing, and attacking the player.
      Parameters:
      target - The player entity that the boss will chase and attack.
      Returns:
      A fully configured Entity representing Boss-3.
    • createBlackhole

      public static Entity createBlackhole(com.badlogic.gdx.math.Vector2 pos, Entity target)
    • createFireball

      public static Entity createFireball(com.badlogic.gdx.math.Vector2 from, com.badlogic.gdx.math.Vector2 velocity)
    • createWarning

      public static Entity createWarning(com.badlogic.gdx.math.Vector2 pos)
    • createMissle

      public static Entity createMissle(com.badlogic.gdx.math.Vector2 from)
    • createBaseNPC

      public static Entity createBaseNPC(Entity target)
      Creates a base NPC entity with default wandering, chasing, physics, and touch attack behavior. This is used as a template for other bosses or NPCs.
      Parameters:
      target - The player entity that the NPC should follow or chase.
      Returns:
      A configured Entity with AI movement and basic combat capability.
    • createBaseBoss2

      public static Entity createBaseBoss2(Entity target)
    • getDefaultCocoonPositions

      public static com.badlogic.gdx.math.Vector2[] getDefaultCocoonPositions()
      Get default spawn positions for cocoons
      Returns:
      Array of cocoon spawn positions
    • createRobotWithCocoons

      public static Entity createRobotWithCocoons(Entity target)
      Create Robot with cocoon spawning capability (enhanced version)
      Parameters:
      target - The player entity that the boss will chase and attack
      Returns:
      Enhanced Robot entity with cocoon spawning capability