SeekRoomAction Class
Declared on: line 21 of Lua/humanoid_actions/seek_room.lua.
Inheritance: SeekRoomAction ยป HumanoidAction
Inheritance: SeekRoomAction ยป HumanoidAction
Method Index
- afterLoad(old, new) (inherited from HumanoidAction)
- disableTruncate() (inherited from HumanoidAction)
- enableTreatmentRoom()
- setAfterUse(after_use) (inherited from HumanoidAction)
- setCount(count) (inherited from HumanoidAction)
- setDiagnosisRoom(room)
- setIsLeaving(is_leaving) (inherited from HumanoidAction)
- setLoopCallback(loop_callback) (inherited from HumanoidAction)
- setMustHappen(must_happen) (inherited from HumanoidAction)
- setUninterruptible(uninterruptible) (inherited from HumanoidAction)
Member Index
- after_use (*)
- count (*)
- diagnosis_room
- idle_must_happen (*)
- is_entering (*)
- is_leaving (*)
- loop_callback (*)
- must_happen (*)
- name (*)
- no_truncate (*)
- room_type
- saved_must_happen (*)
- state (*)
- treatment_room
- uninterruptible (*)
function SeekRoomAction:SeekRoomAction(room_type)
Find another room (and go to it).
Parameters:
| Name | Type | Description |
|---|---|---|
| room_type | ? | Type of the new room. |
Declared on: line 26 of Lua/humanoid_actions/seek_room.lua.
function SeekRoomAction:enableTreatmentRoom()
Denote that the room being looked for is a treatment room.
Declared on: line 37 of Lua/humanoid_actions/seek_room.lua.
function SeekRoomAction:setDiagnosisRoom(room)
Sets the index of the room to use from the disease's available diagnosis
rooms
Parameters:
| Name | Type | Description |
|---|---|---|
| room | integer | key in the available diagnosis room list |
Declared on: line 44 of Lua/humanoid_actions/seek_room.lua.