OperatingTheatreRoom Class
TODO: There is also an unused sound "Another surgeon needed [...]", reqd011.wav room.handyman_call_sound = "maint007.wav" TODO: No sound for this room?
Method Index
- _arePatientsWantingToEnter() (inherited from Room)
- _buildTableAction1(surgeon1, patient, operation_table)
- _buildTableAction2(multi_use, operation_table_b)
- _checkWaitToggleValidTarget() (inherited from Room)
- _staffWaitToggle(activate) (inherited from Room)
- afterLoad(old, new) (inherited from Room)
- calculateHappinessFactor() (inherited from Room)
- calculateRemovalCost() (inherited from Room)
- canHumanoidEnter(humanoid) (overrides Room:canHumanoidEnter)
- commandEnteringPatient(patient) (overrides Room:commandEnteringPatient)
- commandEnteringStaff(staff) (overrides Room:commandEnteringStaff)
- countWindows() (inherited from Room)
- crashRoom() (inherited from Room)
- createEnterAction(humanoid_entering, callback) (inherited from Room)
- createLeaveAction() (inherited from Room)
- deactivate() (inherited from Room)
- dealtWithPatient(patient) (inherited from Room)
- enterEditMode() (inherited from Room)
- getEntranceXY(inside) (inherited from Room)
- getMaximumStaffCriteria() (inherited from Room)
- getMissingStaff(criteria) (inherited from Room)
- getPatient() (inherited from Room)
- getPatientCount() (inherited from Room)
- getPatients() (inherited from Room)
- getRequiredStaffCriteria() (inherited from Room)
- getRoomMachine() (inherited from Room)
- getStaffMember() (inherited from Room)
- getStaffServiceQuality() (inherited from Room)
- getUsageScore() (inherited from Room)
- hasQueueDialog() (inherited from Room)
- initRoom(x, y, w, h, door, door2) (inherited from Room)
- isDiagnosisRoomForPatient(patient) (inherited from Room)
- isRoomInDemand() (inherited from Room)
- isRoomStaffMember(humanoid) (inherited from Room)
- lockRoomOnRepair() (inherited from Room)
- makeHumanoidDressIfNecessaryAndThenLeave(humanoid) (inherited from Room)
- makeHumanoidLeave(patient) (inherited from Room)
- onHumanoidEnter(humanoid) (inherited from Room)
- onHumanoidLeave(humanoid) (overrides Room:onHumanoidLeave)
- queueWashHands(surgeon, before_other_actions)
- roomFinished() (overrides Room:roomFinished)
- setStaffMember(staff) (inherited from Room)
- setStaffMembersAttribute(attribute, value) (overrides Room:setStaffMembersAttribute)
- setXRayOn(turn_on)
- 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)
- unlockRoomOnRepair() (inherited from Room)
Member Index
- active (*)
- built (*)
- crashed (*)
- dealt_patient_callback (*)
- door (*)
- door2 (*)
- happiness_factor (*)
- height (*)
- hospital
- humanoids (*)
- humanoids_enroute (*)
- id (*)
- is_active (*)
- manual_repair (*)
- maximum_patients (*)
- needs_repair (*)
- objects (*)
- room_info (*)
- sound_played (*)
- staff_member (*)
- staff_member_set
- waiting_staff_member (*)
- width (*)
- world
- x (*)
- x_ray_viewer
- y (*)
function OperatingTheatreRoom:OperatingTheatreRoom(...)
Parameters:
| Name | Type | Description |
|---|---|---|
| ... | ? | ? |
Declared on: line 56 of Lua/rooms/operating_theatre.lua.
function OperatingTheatreRoom:_buildTableAction1(surgeon1, patient, operation_table)
be the same as the surgeon who gets the action on his queue.
the operation table.
Parameters:
| Name | Type | Description |
|---|---|---|
| surgeon1 | Staff | : the surgeon who does this operation action. He must |
| patient | Patient | : the patient to be operated. |
| operation_table | OperatingTable | : master object representing |
Declared on: line 166 of Lua/rooms/operating_theatre.lua.
function OperatingTheatreRoom._buildTableAction2(multi_use, operation_table_b)
Note: Must be part of OperatingTheatreRoom and not a local function
because of the use in the persisted callback function operation_standby.
Parameters:
| Name | Type | Description |
|---|---|---|
| multi_use | action | : the first operation action (built with via buildTableAction1()). |
| operation_table_b | OperatingTable | : slave object representing the operation table. |
Declared on: line 98 of Lua/rooms/operating_theatre.lua.
Note: Is a function rather than a method.
function OperatingTheatreRoom:canHumanoidEnter(humanoid)
Parameters:
| Name | Type | Description |
|---|---|---|
| humanoid | ? | ? |
Overrides: Room:canHumanoidEnter.
Declared on: line 366 of Lua/rooms/operating_theatre.lua.
function OperatingTheatreRoom:commandEnteringPatient(patient)
Parameters:
| Name | Type | Description |
|---|---|---|
| patient | ? | ? |
Overrides: Room:commandEnteringPatient.
Declared on: line 231 of Lua/rooms/operating_theatre.lua.
function OperatingTheatreRoom:commandEnteringStaff(staff)
Parameters:
| Name | Type | Description |
|---|---|---|
| staff | ? | ? |
Overrides: Room:commandEnteringStaff.
Declared on: line 129 of Lua/rooms/operating_theatre.lua.
function OperatingTheatreRoom:onHumanoidLeave(humanoid)
Parameters:
| Name | Type | Description |
|---|---|---|
| humanoid | ? | ? |
Overrides: Room:onHumanoidLeave.
Declared on: line 346 of Lua/rooms/operating_theatre.lua.
function OperatingTheatreRoom:queueWashHands(surgeon, before_other_actions)
Add the actions at the end of the queue otherwise.
Default value is true.
Parameters:
| Name | Type | Description |
|---|---|---|
| surgeon | ? | ? |
| before_other_actions | boolean | : If true, add the actions at the front the action queue. |
Declared on: line 195 of Lua/rooms/operating_theatre.lua.
function OperatingTheatreRoom:roomFinished()
Overrides: Room:roomFinished.
Declared on: line 61 of Lua/rooms/operating_theatre.lua.
function OperatingTheatreRoom:setStaffMembersAttribute(attribute, value)
Parameters:
| Name | Type | Description |
|---|---|---|
| attribute | ? | ? |
| value | ? | ? |
Overrides: Room:setStaffMembersAttribute.
Declared on: line 160 of Lua/rooms/operating_theatre.lua.
function OperatingTheatreRoom:setXRayOn(turn_on)
Turn on/off x-ray viewer - if it's been found
Parameters:
| Name | Type | Description |
|---|---|---|
| turn_on | boolean | : true to switch on and false to switch off |
Declared on: line 223 of Lua/rooms/operating_theatre.lua.