Package com.csse3200.game.components.npc
Class CustomerComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.npc.CustomerComponent
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCustomerComponent
(BaseCustomerConfig config) Constructor for the CustomerComponentConstructor for the CustomerComponent -
Method Summary
Modifier and TypeMethodDescriptionint
Get the countdown for the customergetName()
Get the name of the customerGet the order number for the customerint
Get the patience of the customerGet the preference of the customerint
Get the reputation of the customerint
Get the spawn timer for the customergetType()
Get the type of the customervoid
setCountDown
(int countDown) Set the countdown for the customervoid
Set the name of the customervoid
setOrderNumber
(String orderNumber) Set the order number for the customervoid
setPatience
(int patience) Set the patience of the customervoid
setPreference
(String preference) Set the preference of the customervoid
setReputation
(int reputation) Set the reputation of the customervoid
setSpawnTimer
(int spawnTimer) Set the spawn timer for the customerMethods inherited from class com.csse3200.game.components.Component
create, dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
CustomerComponent
Constructor for the CustomerComponent- Parameters:
config
- the configuration for the customer
-
CustomerComponent
Constructor for the CustomerComponent- Parameters:
config
- the configuration for the customer
-
-
Method Details
-
setOrderNumber
Set the order number for the customer- Parameters:
orderNumber
- the order number
-
getOrderNumber
Get the order number for the customer- Returns:
- the order number
-
setReputation
public void setReputation(int reputation) Set the reputation of the customer- Parameters:
reputation
- the reputation of the customer
-
getReputation
public int getReputation()Get the reputation of the customer- Returns:
- the reputation of the customer
-
setPatience
public void setPatience(int patience) Set the patience of the customer- Parameters:
patience
- the patience of the customer
-
getPatience
public int getPatience()Get the patience of the customer- Returns:
- the patience of the customer
-
setSpawnTimer
public void setSpawnTimer(int spawnTimer) Set the spawn timer for the customer- Parameters:
spawnTimer
- the spawn timer
-
getSpawnTimer
public int getSpawnTimer()Get the spawn timer for the customer- Returns:
- the spawn timer
-
setCountDown
public void setCountDown(int countDown) Set the countdown for the customer- Parameters:
countDown
- the countdown
-
getCountDown
public int getCountDown()Get the countdown for the customer- Returns:
- the countdown
-
setName
Set the name of the customer- Parameters:
name
- the name of the customer
-
getName
Get the name of the customer- Returns:
- the name of the customer
-
setPreference
Set the preference of the customer- Parameters:
preference
- the preference of the customer
-
getPreference
Get the preference of the customer- Returns:
- the preference of the customer
-
getType
Get the type of the customer- Returns:
- the type of the customer
-