StaffProfile Class
Method Index
- drawFace(canvas, x, y, parts_bitmap, scale)
- getFairWage()
- getFullName()
- getRiseAmount()
- init(skill)
- initDoctor(psychiatrist, surgeon, researcher, junior, consultant, skill)
- isType(humanoid_class)
- parseSkillLevel()
- randomise(month)
- randomiseOrganical()
- setDoctorAbilities(psychiatrist, surgeon, researcher, junior, consultant)
- setSkill(skill)
- translateStaffClass(staff_class)
Member Index
- attention_to_detail
- chin_index
- desc
- face_index
- hair_index
- humanoid_class
- initial
- is_black
- is_consultant
- is_junior
- is_psychiatrist
- is_researcher
- is_surgeon
- layer5
- name
- name_lang
- name_seed
- profession
- skill
- wage
- world
function StaffProfile:StaffProfile(world, humanoid_class, local_string)
Parameters:
| Name | Type | Description |
|---|---|---|
| world | ? | ? |
| humanoid_class | ? | ? |
| local_string | ? | ? |
Declared on: line 26 of Lua/staff_profile.lua.
function StaffProfile:drawFace(canvas, x, y, parts_bitmap, scale)
Parameters:
| Name | Type | Description |
|---|---|---|
| canvas | ? | ? |
| x | ? | ? |
| y | ? | ? |
| parts_bitmap | ? | ? |
| scale | ? | ? |
Declared on: line 204 of Lua/staff_profile.lua.
function StaffProfile:init(skill)
Parameters:
| Name | Type | Description |
|---|---|---|
| skill | ? | ? |
Declared on: line 53 of Lua/staff_profile.lua.
function StaffProfile:initDoctor(psychiatrist, surgeon, researcher, junior, consultant, skill)
Parameters:
| Name | Type | Description |
|---|---|---|
| psychiatrist | ? | ? |
| surgeon | ? | ? |
| researcher | ? | ? |
| junior | ? | ? |
| consultant | ? | ? |
| skill | ? | ? |
Declared on: line 48 of Lua/staff_profile.lua.
function StaffProfile:isType(humanoid_class)
Parameters:
| Name | Type | Description |
|---|---|---|
| humanoid_class | ? | ? |
Declared on: line 284 of Lua/staff_profile.lua.
function StaffProfile:parseSkillLevel()
Update junior and consultant status
Declared on: line 213 of Lua/staff_profile.lua.
function StaffProfile:randomise(month)
Parameters:
| Name | Type | Description |
|---|---|---|
| month | ? | ? |
Declared on: line 89 of Lua/staff_profile.lua.
function StaffProfile:randomiseOrganical()
Give the staff member some personal properties.
Declared on: line 152 of Lua/staff_profile.lua.
function StaffProfile:setDoctorAbilities(psychiatrist, surgeon, researcher, junior, consultant)
Parameters:
| Name | Type | Description |
|---|---|---|
| psychiatrist | ? | ? |
| surgeon | ? | ? |
| researcher | ? | ? |
| junior | ? | ? |
| consultant | ? | ? |
Declared on: line 40 of Lua/staff_profile.lua.
function StaffProfile:setSkill(skill)
Parameters:
| Name | Type | Description |
|---|---|---|
| skill | ? | ? |
Declared on: line 59 of Lua/staff_profile.lua.
function StaffProfile.translateStaffClass(staff_class)
Translate the staff class to its translated text.
Parameters:
| Name | Type | Description |
|---|---|---|
| staff_class | ? | Class of the staff to translate. |
Declared on: line 270 of Lua/staff_profile.lua.
Note: Is a function rather than a method.