WardRoom Class
Method Index
- afterLoad(old, new) (overrides Room:afterLoad)
- canHumanoidEnter(humanoid) (inherited from Room)
- commandEnteringPatient(patient) (overrides Room:commandEnteringPatient)
- commandEnteringStaff(humanoid) (overrides Room:commandEnteringStaff)
- countWorkingNurses()
- crashRoom() (inherited from Room)
- createDealtWithPatientCallback(humanoid) (inherited from Room)
- createEnterAction(humanoid_entering, callback) (inherited from Room)
- createLeaveAction() (inherited from Room)
- deactivate() (inherited from Room)
- dealtWithPatient(patient) (inherited from Room)
- doStaffUseCycle(humanoid)
- findWorkForStaff() (inherited from Room)
- getEntranceXY(inside) (inherited from Room)
- getMaximumStaffCriteria() (overrides Room:getMaximumStaffCriteria)
- getMissingStaff(criteria) (inherited from Room)
- getPatient() (inherited from Room)
- getPatientCount() (inherited from Room)
- getRequiredStaffCriteria() (inherited from Room)
- getStaffMember() (overrides Room:getStaffMember)
- getUsageScore() (inherited from Room)
- hasQueueDialog() (inherited from Room)
- initRoom(x, y, w, h, door, door2) (inherited from Room)
- isWaitingToGetStaff(staff) (inherited from Room)
- makeHumanoidLeave(patient) (inherited from Room)
- onHumanoidEnter(humanoid) (inherited from Room)
- onHumanoidLeave(humanoid) (overrides Room:onHumanoidLeave)
- roomFinished() (overrides Room:roomFinished)
- setStaffMember(staff) (overrides Room:setStaffMember)
- setStaffMembersAttribute(attribute, value) (overrides Room:setStaffMembersAttribute)
- shouldHavePatientReenter(patient) (inherited from Room)
- staffFitsInRoom(staff) (inherited from Room)
- staffMeetsRoomRequirements(humanoid) (inherited from Room)
- testStaffCriteria(criteria, extra_humanoid) (inherited from Room)
- tryAdvanceQueue() (inherited from Room)
- tryToEdit() (inherited from Room)
- tryToFindNearbyPatients() (inherited from Room)
Member Index
- active (*)
- built (*)
- crashed (*)
- dealt_patient_callback (*)
- door
- door2 (*)
- height (*)
- hospital
- humanoids (*)
- humanoids_enroute (*)
- id (*)
- is_active (*)
- maximum_patients
- maximum_staff
- needs_repair (*)
- nursecount
- objects (*)
- room_info (*)
- sound_played (*)
- staff_member
- staff_member_set
- waiting_staff_member (*)
- width (*)
- world
- x (*)
- y (*)
function WardRoom:WardRoom(...)
Parameters:
Name | Type | Description |
---|---|---|
... | ? | ? |
Declared on: line 53 of Lua/rooms/ward.lua.
function WardRoom:afterLoad(old, new)
Parameters:
Name | Type | Description |
---|---|---|
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:
Name | Type | Description |
---|---|---|
patient | ? | ? |
Overrides: Room:commandEnteringPatient.
Declared on: line 132 of Lua/rooms/ward.lua.
function WardRoom:commandEnteringStaff(humanoid)
Parameters:
Name | Type | Description |
---|---|---|
humanoid | ? | ? |
Overrides: Room:commandEnteringStaff.
Declared on: line 86 of Lua/rooms/ward.lua.
function WardRoom:doStaffUseCycle(humanoid)
Parameters:
Name | Type | Description |
---|---|---|
humanoid | ? | ? |
Declared on: line 92 of Lua/rooms/ward.lua.
function WardRoom:getMaximumStaffCriteria()
Overrides: Room:getMaximumStaffCriteria.
Declared on: line 82 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:
Name | Type | Description |
---|---|---|
humanoid | ? | ? |
Overrides: Room:onHumanoidLeave.
Declared on: line 205 of Lua/rooms/ward.lua.
function WardRoom:roomFinished()
Overrides: Room:roomFinished.
Declared on: line 58 of Lua/rooms/ward.lua.
function WardRoom:setStaffMember(staff)
Parameters:
Name | Type | Description |
---|---|---|
staff | ? | ? |
Overrides: Room:setStaffMember.
Declared on: line 184 of Lua/rooms/ward.lua.
function WardRoom:setStaffMembersAttribute(attribute, value)
Parameters:
Name | Type | Description |
---|---|---|
attribute | ? | ? |
value | ? | ? |
Overrides: Room:setStaffMembersAttribute.
Declared on: line 199 of Lua/rooms/ward.lua.