new ApplicationProfile()
Represents an application to your company. Game entity class.
You only deal with this class in company.humanResources.hiringProcess function. There you look into all available ApplicationProfile objects and recruit at least one chef and one waiter. Someone with a high qualification/desiredSalary quotient is always a good candidate. Use the offer method to try to hire him/her. If more than one player makes an offer, the candidate will pick the offer with the highest salary.
You only deal with this class in company.humanResources.hiringProcess function. There you look into all available ApplicationProfile objects and recruit at least one chef and one waiter. Someone with a high qualification/desiredSalary quotient is always a good candidate. Use the offer method to try to hire him/her. If more than one player makes an offer, the candidate will pick the offer with the highest salary.
- Source:
- ApplicationProfile.js
Members
-
name :String
-
The name of the applicant. Read-only.
Type:
- String
- Source:
- ApplicationProfile.js
-
qualification :Number
-
The qualification level. Ranges from 1 to 10. The higher the better. Read-only.
Type:
- Number
- Source:
- ApplicationProfile.js
-
jobPosition :String
-
The position the applicant could work. Can be CHEF, WAITER, MANAGER. Read-only.
Type:
- String
- Source:
- ApplicationProfile.js
-
desiredSalary :Number
-
The desired salary per month. Read-only.
Type:
- Number
- Source:
- ApplicationProfile.js
Methods
-
offer(establishment, salary)
-
Tries to hire this application at the specified location.
Parameters:
Name Type Description establishment
Establishment The restaurant where the employee should work salary
Number The salary per month you offer. Optional. - Source:
- ApplicationProfile.js
Example
Offer the desired salary
// check if we have one waiter if (company.humanResources.getEmployees("WAITER").size() < 1) { // get a waiter profile and make an offer for our first establishment applicationProfiles.subList("WAITER").get(0).offer(company.establishments.get(0)); }