Class NPCFactory

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

public class NPCFactory extends Object
Factory to create non-playable character (NPC) entities with predefined components.
  • Method Details

    • createBoss

      public static Entity createBoss(com.badlogic.gdx.math.Vector2 targetPosition)
      Creates a boss entity.
      Parameters:
      targetPosition - Place to roam to
      Returns:
      entity
    • createUpgradeNPC

      public static Entity createUpgradeNPC(com.badlogic.gdx.math.Vector2 firstPosition, UpgradesDisplay upgradesDisplay)
      Utility class for creating upgrade NPCs within the game. This method initializes a penguin entity with various components and behaviors to serve as an upgrade vendor. The penguin can be interacted with by the player to display available upgrades.
    • createCustomerPersonal

      public static Entity createCustomerPersonal(String name, com.badlogic.gdx.math.Vector2 targetPosition)
    • createBasicCustomer

      public static Entity createBasicCustomer(String name, com.badlogic.gdx.math.Vector2 targetPosition)
    • createBaseCustomer

      public static Entity createBaseCustomer(com.badlogic.gdx.math.Vector2 targetPosition, float waitingTime)
    • createBaseCharacter

      public static Entity createBaseCharacter(com.badlogic.gdx.math.Vector2 targetPosition)
    • createStandard

      public static Entity createStandard(com.badlogic.gdx.math.Vector2 targetPosition)
    • decreaseCustomerCount

      public static void decreaseCustomerCount()
    • reset

      public static void reset()