CorsixTH Lua Documentation

StaffProfile Class

Declared on: line 21 of Lua/staff_profile.lua.

Method Index

Member Index

function StaffProfile:StaffProfile(world, humanoid_class, local_string)

Parameters:

NameTypeDescription
world ? ?
humanoid_class ? ?
local_string ? ?

Declared on: line 26 of Lua/staff_profile.lua.

function StaffProfile:drawFace(canvas, x, y, parts_bitmap, scale)

Parameters:

NameTypeDescription
canvas ? ?
x ? ?
y ? ?
parts_bitmap ? ?
scale ? ?

Declared on: line 204 of Lua/staff_profile.lua.

function StaffProfile:init(skill)

Parameters:

NameTypeDescription
skill ? ?

Declared on: line 53 of Lua/staff_profile.lua.

function StaffProfile:initDoctor(psychiatrist, surgeon, researcher, junior, consultant, skill)

Parameters:

NameTypeDescription
psychiatrist ? ?
surgeon ? ?
researcher ? ?
junior ? ?
consultant ? ?
skill ? ?

Declared on: line 48 of Lua/staff_profile.lua.

function StaffProfile:isType(humanoid_class)

Parameters:

NameTypeDescription
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:

NameTypeDescription
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:

NameTypeDescription
psychiatrist ? ?
surgeon ? ?
researcher ? ?
junior ? ?
consultant ? ?

Declared on: line 40 of Lua/staff_profile.lua.

function StaffProfile:setSkill(skill)

Parameters:

NameTypeDescription
skill ? ?

Declared on: line 59 of Lua/staff_profile.lua.

function StaffProfile.translateStaffClass(staff_class)

Translate the staff class to its translated text.

Parameters:

NameTypeDescription
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.