Class NPCFactory
java.lang.Object
com.csse3200.game.entities.factories.NPCFactory
Factory to create non-playable character (NPC) entities with predefined
components.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Entity
createBaseCharacter
(com.badlogic.gdx.math.Vector2 targetPosition) static Entity
createBaseCustomer
(com.badlogic.gdx.math.Vector2 targetPosition, float waitingTime) static Entity
createBasicCustomer
(String name, com.badlogic.gdx.math.Vector2 targetPosition) static Entity
createBoss
(com.badlogic.gdx.math.Vector2 targetPosition) Creates a boss entity.static Entity
createCustomerPersonal
(String name, com.badlogic.gdx.math.Vector2 targetPosition) static Entity
createStandard
(com.badlogic.gdx.math.Vector2 targetPosition) static Entity
createUpgradeNPC
(com.badlogic.gdx.math.Vector2 firstPosition, UpgradesDisplay upgradesDisplay) Utility class for creating upgrade NPCs within the game.static void
static void
reset()
-
Method Details
-
createBoss
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
-
createBasicCustomer
-
createBaseCustomer
public static Entity createBaseCustomer(com.badlogic.gdx.math.Vector2 targetPosition, float waitingTime) -
createBaseCharacter
-
createStandard
-
decreaseCustomerCount
public static void decreaseCustomerCount() -
reset
public static void reset()
-