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 EntitycreateBaseCharacter(com.badlogic.gdx.math.Vector2 targetPosition) static EntitycreateBaseCustomer(com.badlogic.gdx.math.Vector2 targetPosition, float waitingTime) static EntitycreateBasicCustomer(String name, com.badlogic.gdx.math.Vector2 targetPosition) static EntitycreateBoss(com.badlogic.gdx.math.Vector2 targetPosition) Creates a boss entity.static EntitycreateCustomerPersonal(String name, com.badlogic.gdx.math.Vector2 targetPosition) static EntitycreateStandard(com.badlogic.gdx.math.Vector2 targetPosition) static EntitycreateUpgradeNPC(com.badlogic.gdx.math.Vector2 firstPosition, UpgradesDisplay upgradesDisplay) Utility class for creating upgrade NPCs within the game.static voidstatic voidreset()
-
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()
-