Module CorsixTH.CorsixTH.Lua.rooms.operating_theatre

Returns true if an operation is ongoing

Functions

OperatingTheatreRoom._buildTableAction2 (multi_use, operation_table_b) Builds the second operation action (i.e.
OperatingTheatreRoom:buildTableAction1 (surgeon1, patient, operation_table) Builds the first operation action (i.e.
OperatingTheatreRoom:queueWashHands (surgeon, at_front) Sends the surgeon to the nearest operation sink ("op_sink1") and makes him wash his hands.
OperatingTheatreRoom:setXRayOn (turn_on) Turn on/off x-ray viewer - if it's been found


Functions

OperatingTheatreRoom._buildTableAction2 (multi_use, operation_table_b)
Builds the second operation action (i.e. with the surgeon whose we see the back). Called either when the operation starts or when the operation is resumed after interruption caused by the picking up of the second surgeon. Note: Must be part of OperatingTheatreRoom and not a local function because of the use in the persisted callback function operation_standby.

Parameters:

  • multi_use (action): the first operation action (built with via buildTableAction1()).
  • operation_table_b (OperatingTable): slave object representing the operation table.
OperatingTheatreRoom:buildTableAction1 (surgeon1, patient, operation_table)
Builds the first operation action (i.e. with the surgeon whose we see the front).

Parameters:

  • surgeon1 (Staff): the surgeon who does this operation action. He must be the same as the surgeon who gets the action on his queue.
  • patient (Patient): the patient to be operated.
  • operation_table (OperatingTable): master object representing the operation table.
OperatingTheatreRoom:queueWashHands (surgeon, at_front)
Sends the surgeon to the nearest operation sink ("op_sink1") and makes him wash his hands.

Parameters:

  • surgeon (Staff)
  • at_front (boolean): If true, add the actions at the front the action queue. Add the actions at the end of the queue otherwise. Default value is true.
OperatingTheatreRoom:setXRayOn (turn_on)
Turn on/off x-ray viewer - if it's been found

Parameters:

  • turn_on (boolean): true to switch on and false to switch off
generated by LDoc TESTING Last updated 2015-01-01 12:00:00