Handyman Class
A Doctor, Nurse, Receptionist, Handyman, or Surgeon
Inheritance: Handyman » Staff » Humanoid » Entity
Method Index
- _handleEmptyActionQueue() (inherited from Humanoid)
- _tick() (inherited from Entity)
- adviseWrongPersonForThisRoom() (inherited from Staff)
- afterLoad(old, new) (overrides Staff:afterLoad)
- assignHandymanTask(task_index, task_type)
- changeAttribute(attribute, amount) (inherited from Humanoid)
- checkIfNeedRest() (inherited from Staff)
- checkIfWaitedTooLongForRaise() (inherited from Staff)
- clearDynamicInfo() (inherited from Entity)
- despawn() (inherited from Staff)
- die() (overrides Staff:die)
- doMeandering()
- dump() (overrides Staff:dump)
- eraseObject() (inherited from Entity)
- findObjectsInSquare(size, object_spec) (inherited from Humanoid)
- finishAction(action) (inherited from Humanoid)
- fire() (inherited from Staff)
- fulfillsCriterion(criterion) (overrides Staff:fulfillsCriterion)
- getAttribute(attribute, default_value) (inherited from Humanoid)
- getCurrentAction() (inherited from Humanoid)
- getCurrentMood() (inherited from Humanoid)
- getDrawingLayer() (inherited from Entity)
- getDynamicInfo() (inherited from Entity)
- getIdleAnimation(humanoid_class) (inherited from Humanoid)
- getPriority(task_type)
- getRoom() (inherited from Humanoid)
- getServiceQuality() (inherited from Staff)
- getTile() (inherited from Entity)
- goToStaffRoom() (overrides Staff:goToStaffRoom)
- goingToUseObject(object_type) (inherited from Humanoid)
- handleRemovedObject(object) (inherited from Humanoid)
- hasDressingAndLeavingAction() (inherited from Humanoid)
- hasLeavingAction() (inherited from Humanoid)
- increaseWage(amount) (inherited from Staff)
- isCrackUpTired() (inherited from Staff)
- isEnteringRoom() (inherited from Humanoid)
- isIdle() (inherited from Staff)
- isKnockingDoor() (inherited from Humanoid)
- isLeaving() (inherited from Humanoid)
- isMeandering() (inherited from Humanoid)
- isMoodActive(mood) (inherited from Humanoid)
- isObscuringArea(x1, x2, y1, y2) (inherited from Humanoid)
- isResting() (inherited from Staff)
- isTiring() (inherited from Staff)
- isType(humanoid_class) (inherited from Humanoid)
- isVeryTired() (inherited from Staff)
- leaveArea() (inherited from Humanoid)
- notifyNewObject(id) (inherited from Entity)
- notifyNewRoom(room) (inherited from Staff)
- notifyOfStaffChange(staff) (inherited from Humanoid)
- onClick(ui, button) (inherited from Staff)
- onDestroy() (inherited from Staff)
- onPickUp() (inherited from Entity)
- onPickup() (overrides Staff:onPickup)
- onPlaceInCorridor() (inherited from Staff)
- playAfterLoadSound() (inherited from Entity)
- playEntitySounds(name_pattern, min_silence_lengths, max_silence_lengths, num_silences) (inherited from Entity)
- playSound(name, played_callback, played_callback_delay) (inherited from Entity)
- processCleaningTask(task)
- queueAction(action, pos) (inherited from Humanoid)
- registerRoomBuildCallback(callback) (inherited from Humanoid)
- registerRoomRemoveCallback(callback) (inherited from Humanoid)
- registerStaffChangeCallback(callback) (inherited from Humanoid)
- releaseHandymanFromTask(reset_action_queue)
- removeQueuedStaffMessage() (inherited from Staff)
- requestRaise() (inherited from Staff)
- resetAnimation() (inherited from Entity)
- searchForHandymanTask()
- setAnimation(animation, flags) (inherited from Entity)
- setCallCompleted() (inherited from Humanoid)
- setDynamicInfo(type, value) (inherited from Entity)
- setDynamicInfoText(text) (inherited from Staff)
- setHospital(hospital) (inherited from Staff)
- setIfHoverMoodsVisible() (inherited from Humanoid)
- setLayer(layer, id) (inherited from Entity)
- setMood(mood_name, activate) (inherited from Humanoid)
- setMoodInfo(new_mood) (inherited from Entity)
- setNextAction(action, high_priority) (inherited from Humanoid)
- setPickup(ui, window_to_close) (inherited from Staff)
- setPosition(x, y) (inherited from Entity)
- setPriority(task_type, priority)
- setProfile(profile) (overrides Staff:setProfile)
- setSpeed(x, y) (inherited from Entity)
- setTile(x, y) (inherited from Entity)
- setTilePositionSpeed(tx, ty, px, py, sx, sy) (inherited from Entity)
- setTimer(tick_count, f) (inherited from Entity)
- setType(humanoid_class) (inherited from Humanoid)
- setWaitingForSoundEffectsToBeTurnedOn() (inherited from Entity)
- startAction() (inherited from Humanoid)
- tick() (inherited from Staff)
- tickDay() (inherited from Staff)
- tire(amount) (inherited from Staff)
- tostring() (inherited from Staff)
- unassignCall()
- unassignTask()
- unexpectFromRoom(dest_room) (inherited from Humanoid)
- unregisterCallbacks() (inherited from Humanoid)
- unregisterRoomBuildCallback(callback) (inherited from Humanoid)
- unregisterRoomRemoveCallback(callback) (inherited from Humanoid)
- unregisterStaffChangeCallback(callback) (inherited from Humanoid)
- updateDynamicInfo() (inherited from Staff)
- updateSpeed() (inherited from Staff)
- wake(amount) (inherited from Staff)
- walkTo(tile_x, tile_y, must_happen) (inherited from Humanoid)
Member Index
- action_queue (*)
- active_moods (*)
- animation_flags (*)
- animation_idx (*)
- associated_desk (*)
- attributes
- build_callback (*)
- build_callbacks (*)
- check_watch_anim (*)
- dead (*)
- die_anims (*)
- door_anims (*)
- dynamic_info (*)
- dynamic_text (*)
- falling_anim (*)
- fired (*)
- get_up_anim (*)
- goHome (*)
- going_home (*)
- going_to_die (*)
- going_to_staffroom
- has_fallen (*)
- has_vomitted (*)
- hospital
- hover_cursor (*)
- hover_moods (*)
- humanoid_class (*)
- in_room (*)
- last_move_direction (*)
- last_room
- layers (*)
- leave_priority
- leave_sounds
- message_callback (*)
- mood_info (*)
- mood_marker (*)
- next_room_to_visit (*)
- num_animation_ticks (*)
- on_call
- on_ground_anim (*)
- parcelNr (*)
- pee_anim (*)
- permanent_flags (*)
- pickup
- playing_sounds_in_random_sequence (*)
- previous_action (*)
- profile (*)
- quitting_in (*)
- random_sound_sequence_parameters (*)
- remove_callbacks (*)
- shake_fist_anim (*)
- should_knock_on_doors (*)
- skip_next_tick (*)
- slow_animation (*)
- speed (*)
- staff_change_callbacks (*)
- staffroom_needed (*)
- tap_foot_anim (*)
- task
- th (*)
- ticks (*)
- tile_x (*)
- tile_y (*)
- timer_function (*)
- timer_time (*)
- timer_until_raise (*)
- toilet_callback (*)
- user_of (*)
- vomit_anim (*)
- waiting_for_sound_effects_to_be_turned_on (*)
- waiting_for_staffroom (*)
- walk_anims (*)
- world (*)
- yawn_anim (*)
function Handyman:Handyman(...)
Parameters:
| Name | Type | Description |
|---|---|---|
| ... | ? | Arguments to base class constructor. |
Declared on: line 32 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:afterLoad(old, new)
Parameters:
| Name | Type | Description |
|---|---|---|
| old | ? | ? |
| new | ? | ? |
Overrides: Staff:afterLoad.
Declared on: line 222 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:assignHandymanTask(task_index, task_type)
Assign a handyman to a task
Parameters:
| Name | Type | Description |
|---|---|---|
| task_index | integer | task index |
| task_type | string | task type |
Declared on: line 171 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:die()
Overrides: Staff:die.
Declared on: line 216 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:doMeandering()
Declared on: line 160 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:dump()
Overrides: Staff:dump.
Declared on: line 52 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:fulfillsCriterion(criterion)
Helper function to decide if Handyman fulfills a criterion
(one of "Doctor", "Nurse", "Psychiatrist", "Surgeon", "Researcher" and "Handyman", "Receptionist", "Junior", "Consultant")
Parameters:
| Name | Type | Description |
|---|---|---|
| criterion | ? | ? |
Overrides: Staff:fulfillsCriterion.
Declared on: line 87 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:getPriority(task_type)
Get task type priority value
Parameters:
| Name | Type | Description |
|---|---|---|
| task_type | string | task type |
Declared on: line 45 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:goToStaffRoom()
Overrides: Staff:goToStaffRoom.
Declared on: line 82 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:onPickup()
Overrides: Staff:onPickup.
Declared on: line 93 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:processCleaningTask(task)
Parameters:
| Name | Type | Description |
|---|---|---|
| task | ? | ? |
Declared on: line 188 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:releaseHandymanFromTask(reset_action_queue)
Detaches the handyman from the task and forces him to search for a new one.
Parameters:
| Name | Type | Description |
|---|---|---|
| reset_action_queue | bool | Should the handyman interrupt the current action to search for a new task |
Declared on: line 98 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:searchForHandymanTask()
Declared on: line 112 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:setPriority(task_type, priority)
Set task type priority value
Parameters:
| Name | Type | Description |
|---|---|---|
| task_type | string | task type |
| priority | float | priority to set |
Declared on: line 38 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:setProfile(profile)
Parameters:
| Name | Type | Description |
|---|---|---|
| profile | ? | ? |
Overrides: Staff:setProfile.
Declared on: line 73 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:unassignCall()
Declared on: line 210 of Lua/entities/humanoids/staff/handyman.lua.
function Handyman:unassignTask()
If the staff member had a task outstanding, unassigning them from that task.
Tasks with no handyman assigned will be eligible for reassignment by the hospital.
Declared on: line 200 of Lua/entities/humanoids/staff/handyman.lua.