Customer Config - UQcsse3200/2024-studio-3 GitHub Wiki

Base Customer Config

Base Customer or Customer's without reputation building.

  • Name: Random to 'Consumer' followed by a random integer
  • countDown: Running counter from the Patience Value to 0. Trigger events when goes to 0. (Trigger pending)
  • patience: Seconds the NPC waits for food on the counter
  • spawnTimer: In seconds, frequency of spawn
  • pref: Defaults to 0 now. Base Customer not having Preferences.
  • reputation: Defaults to -1. Base Customer cannot have Reputation.
  • texture: Texture file of the sprite.

Personality Customer Config

Personality Customers have a Config file. (source/core/assets/configs/Customer.json)

Structure -

  • Name: Picks up from the Config
  • countDown: Running counter from the Patience Value to 0. Trigger events when goes to 0. (Trigger pending)
  • patience: Seconds the NPC waits for food on the counter
  • spawnTimer: In seconds, frequency of spawn
  • pref: Defaults to 0 now. (To be changed with List of Ingredients)
  • texture: Texture file of the sprite.
  • reputation: Picks from JSON