Package com.csse3200.game.components.npc
Class CustomerManager
java.lang.Object
com.csse3200.game.components.npc.CustomerManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCustomer(String orderNumber, Entity customer) Add a customer to a specific order numberstatic EntitygetCustomerByOrder(String orderNumber) Get the customer entity by the order numberstatic voidstatic voidremoveCustomerByOrder(String orderNumber) Remove the customer entity by the order numberstatic voidreset()Reset map
-
Constructor Details
-
CustomerManager
public CustomerManager()
-
-
Method Details
-
addCustomer
Add a customer to a specific order number- Parameters:
orderNumber- The order numbercustomer- The customer entity
-
getCustomerByOrder
Get the customer entity by the order number- Parameters:
orderNumber- The order number- Returns:
- The customer entity
-
removeCustomerByOrder
Remove the customer entity by the order number- Parameters:
orderNumber- The order number
-
reset
public static void reset()Reset map -
printMessage
public static void printMessage()
-