Customer Component - UQcsse3200/2024-studio-3 GitHub Wiki
Follows the Customer Config format
Constructor
Base Customer
Only the following can be set by passing a BaseCustomerConfig as an argument of CustomerComponent.
name
patience
spawnTimer
countDown
Personality Customer
Accepts a CustomerPersonalityConfig as an argument i.e. BaseCustomer with following additional fields.
pref
reputation
Methods
setReputation(int repuation)
- Only allows to set repuation for Personality Customer.
- Value needs to between or equal to 0 and 100
getReputation
- Returns reputation of the customer.
- if
-1
, means it's a base customer. Cannot have Reputation.