CorsixTH Lua Documentation

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?

Declared on: line 47 of Lua/rooms/operating_theatre.lua.
Inheritance: OperatingTheatreRoom ยป Room

Method Index

Member Index

(*) only used in superclass methods
function OperatingTheatreRoom:_buildTableAction1(surgeon1, patient, operation_table)

be the same as the surgeon who gets the action on his queue.

the operation table.

Parameters:

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

NameTypeDescription
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:queueWashHands(surgeon, before_other_actions)

Add the actions at the end of the queue otherwise.

Default value is true.

Parameters:

NameTypeDescription
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:setXRayOn(turn_on)

Turn on/off x-ray viewer - if it's been found

Parameters:

NameTypeDescription
turn_on boolean : true to switch on and false to switch off

Declared on: line 223 of Lua/rooms/operating_theatre.lua.