Class: Salespeople - creechD/DealershipSimulation GitHub Wiki
Salespeople are the face of the dealership. They are in charge of bringing the customer from wanting a car to owning a car. They need to have many skills to discover what the customer actually wants, what they will pay, and sealing the deal. All the while, the Salesperson is trying to maximize their own profits.
#Attributes
startTime
This indicates when the salesperson was hired into the dealership
actions_per_second
This indicates how many actions per minute the salesperson can take. Defaults to 0.5 (1 action every 2 seconds.
last_action_time
This indicates the last time the salesperson performed an action.
helping_customer
This tracks that the salesperson is currently engaged with a customer.
###To be added
greed
This will be the percent of the profit the salesperson gets when a vehicle is sold.
####Skills
engaging
This skill will help the salesperson engage with the customer.
listener
This skill will help the salesperson understand the customer's needs.
#Functions
find_customer
The salesperson looks for customers either idle or shopping with no near by salesperson. The salesperson will now be helping that customer.
activity_check
This checks to see if the salesperson can perform another action.
#States
idle
This state is when the salesperson is not doing anything.
near_by
This state is when the salesperson is next to a customer trying to engage with the customer.
`