ToiletRoom Class
Method Index
- afterLoad(old, new) (overrides Room:afterLoad)
- canHumanoidEnter(humanoid) (inherited from Room)
- commandEnteringPatient(humanoid) (inherited from Room)
- commandEnteringStaff(humanoid, already_initialized) (inherited from Room)
- 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) (overrides Room:dealtWithPatient)
- findWorkForStaff() (inherited from Room)
- freeLoos()
- getEntranceXY(inside) (inherited from Room)
- getMaximumStaffCriteria() (inherited from Room)
- getMissingStaff(criteria) (inherited from Room)
- getPatient() (inherited from Room)
- getPatientCount() (overrides Room:getPatientCount)
- getRequiredStaffCriteria() (inherited from Room)
- getStaffMember() (inherited from Room)
- 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) (overrides Room:onHumanoidEnter)
- onHumanoidLeave(humanoid) (inherited from Room)
- roomFinished() (overrides Room:roomFinished)
- setStaffMember(staff) (inherited from Room)
- setStaffMembersAttribute(attribute, value) (inherited from Room)
- 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
- needs_repair (*)
- objects (*)
- room_info (*)
- sound_played (*)
- staff_member (*)
- waiting_staff_member (*)
- width (*)
- world
- x (*)
- y (*)
function ToiletRoom:ToiletRoom(...)
Parameters:
Name | Type | Description |
---|---|---|
... | ? | ? |
Declared on: line 42 of Lua/rooms/toilets.lua.
function ToiletRoom:afterLoad(old, new)
Parameters:
Name | Type | Description |
---|---|---|
old | ? | ? |
new | ? | ? |
Overrides: Room:afterLoad.
Declared on: line 186 of Lua/rooms/toilets.lua.
function ToiletRoom:dealtWithPatient(patient)
Parameters:
Name | Type | Description |
---|---|---|
patient | ? | ? |
Overrides: Room:dealtWithPatient.
Declared on: line 75 of Lua/rooms/toilets.lua.
function ToiletRoom:freeLoos()
if any of the occupants are not using a loo then the loo must be free
Declared on: line 60 of Lua/rooms/toilets.lua.
function ToiletRoom:getPatientCount()
Override the standard way to count the number of patients to take into account
that some of them may not be using the loo, allowing others to enter the room earlier than normal;
but not if there is only one loo in the room, then it becomes a private toilet with only one person at a time.
Overrides: Room:getPatientCount.
Declared on: line 166 of Lua/rooms/toilets.lua.
function ToiletRoom:onHumanoidEnter(humanoid)
Parameters:
Name | Type | Description |
---|---|---|
humanoid | ? | ? |
Overrides: Room:onHumanoidEnter.
Declared on: line 85 of Lua/rooms/toilets.lua.
function ToiletRoom:roomFinished()
Overrides: Room:roomFinished.
Declared on: line 47 of Lua/rooms/toilets.lua.