CorsixTH Lua Documentation

WardRoom Class

Declared on: line 51 of Lua/rooms/ward.lua.
Inheritance: WardRoom ยป Room

Method Index

Member Index

(*) only used in superclass methods
function WardRoom:WardRoom(...)

Parameters:

NameTypeDescription
... ? ?

Declared on: line 53 of Lua/rooms/ward.lua.

function WardRoom:afterLoad(old, new)

Parameters:

NameTypeDescription
old ? ?
new ? ?

Overrides: Room:afterLoad.
Declared on: line 210 of Lua/rooms/ward.lua.

function WardRoom:commandEnteringPatient(patient)

TODO the nurse should not leave the ward if there are beds in use, therefore prevent her from being picked up and have a system that stops patients entering the ward if she is in need of taking a break or being called elsewhere.

Parameters:

NameTypeDescription
patient ? ?

Overrides: Room:commandEnteringPatient.
Declared on: line 132 of Lua/rooms/ward.lua.

function WardRoom:commandEnteringStaff(humanoid)

Parameters:

NameTypeDescription
humanoid ? ?

Overrides: Room:commandEnteringStaff.
Declared on: line 86 of Lua/rooms/ward.lua.

function WardRoom:doStaffUseCycle(humanoid)

Parameters:

NameTypeDescription
humanoid ? ?

Declared on: line 92 of Lua/rooms/ward.lua.

function WardRoom:getStaffMember()

Returns the staff member with the minimum amount of skill. Perhaps we should consider tiredness too

Overrides: Room:getStaffMember.
Declared on: line 169 of Lua/rooms/ward.lua.

function WardRoom:onHumanoidLeave(humanoid)

Parameters:

NameTypeDescription
humanoid ? ?

Overrides: Room:onHumanoidLeave.
Declared on: line 205 of Lua/rooms/ward.lua.

function WardRoom:setStaffMember(staff)

Parameters:

NameTypeDescription
staff ? ?

Overrides: Room:setStaffMember.
Declared on: line 184 of Lua/rooms/ward.lua.

function WardRoom:setStaffMembersAttribute(attribute, value)

Parameters:

NameTypeDescription
attribute ? ?
value ? ?

Overrides: Room:setStaffMembersAttribute.
Declared on: line 199 of Lua/rooms/ward.lua.

Page generated on Sat Feb 07, 2015 at 18:38:28 by LDocGen.