Class: HumanResources

HumanResources


new HumanResources()

Give you access to all of you employees. Game entity class.
Source:
HumanResources.js

Members


hiringProcess :function

A callback method you might want to implement. It gets called at the start of each month.
Type:
  • function
Source:
HumanResources.js
Example
company.humanResources.hiringProcess = function(applicationProfiles) {
  // this gets called once per month and you can use the 
  // applicationProfiles to hire chefs, waiters and managers.
}

employees :List

Returns a list of all employees your company employs. Read-only.
Type:
Source:
HumanResources.js

Methods


getEmployees(jobProfile)

Returns a list of employees. This is a subset of all available employees.
Parameters:
Name Type Description
jobProfile String A job profile to filter for: CHEF, WAITER, MANAGER
Source:
HumanResources.js
Returns:
a filtered set of employees matching your desired job profile
Type
List

layOff(employee)

Lays off the employee.
Parameters:
Name Type Description
employee Employee Employee to lay off
Source:
HumanResources.js

layOffAll(Establishment)

Lays off all employees at a certain establishment.
Parameters:
Name Type Description
Establishment Establishment to lay off all employees
Source:
HumanResources.js