Inspector Class
An `Inspector` is called to the hospital after an epidemic to issue a report
Inheritance: Inspector » Humanoid » Entity
Method Index
- _handleEmptyActionQueue() (inherited from Humanoid)
- _tick() (inherited from Entity)
- afterLoad(old, new) (overrides Humanoid:afterLoad)
- announce()
- changeAttribute(attribute, amount) (inherited from Humanoid)
- checkForReceptionDesk()
- clearDynamicInfo() (inherited from Entity)
- despawn() (inherited from Humanoid)
- dump() (inherited from Humanoid)
- eraseObject() (inherited from Entity)
- findObjectsInSquare(size, object_spec) (inherited from Humanoid)
- finishAction(action) (inherited from Humanoid)
- 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)
- getRoom() (inherited from Humanoid)
- getTile() (inherited from Entity)
- goHome() (overrides Humanoid:goHome)
- goingToUseObject(object_type) (inherited from Humanoid)
- handleRemovedObject(object) (inherited from Humanoid)
- hasDressingAndLeavingAction() (inherited from Humanoid)
- hasLeavingAction() (inherited from Humanoid)
- isEnteringRoom() (inherited from Humanoid)
- 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)
- isType(humanoid_class) (inherited from Humanoid)
- leaveArea() (inherited from Humanoid)
- notifyNewObject(id) (inherited from Entity)
- notifyNewRoom(room) (inherited from Humanoid)
- notifyOfStaffChange(staff) (inherited from Humanoid)
- onClick(ui, button) (inherited from Humanoid)
- onDestroy() (overrides Humanoid:onDestroy)
- onPickUp() (inherited from Entity)
- 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)
- queueAction(action, pos) (inherited from Humanoid)
- registerRoomBuildCallback(callback) (inherited from Humanoid)
- registerRoomRemoveCallback(callback) (inherited from Humanoid)
- registerStaffChangeCallback(callback) (inherited from Humanoid)
- resetAnimation() (inherited from Entity)
- setAnimation(animation, flags) (inherited from Entity)
- setCallCompleted() (inherited from Humanoid)
- setDynamicInfo(type, value) (inherited from Entity)
- setHospital(hospital) (inherited from Humanoid)
- setIfHoverMoodsVisible() (overrides Humanoid:setIfHoverMoodsVisible)
- 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)
- setPosition(x, y) (inherited from Entity)
- 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() (overrides Entity:tick)
- tickDay() (inherited from Humanoid)
- tire(amount) (inherited from Humanoid)
- tostring() (inherited from Humanoid)
- 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(action_string)
- updateSpeed() (inherited from Humanoid)
- wake(amount) (inherited from Humanoid)
- 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 (*)
- falling_anim (*)
- fire (*)
- getServiceQuality (*)
- get_up_anim (*)
- going_home
- going_to_die (*)
- has_been_announced
- has_fallen (*)
- has_vomitted (*)
- hospital
- hover_cursor
- hover_moods
- humanoid_class (*)
- in_room (*)
- last_hospital
- last_move_direction (*)
- layers (*)
- message_callback (*)
- mood_info (*)
- mood_marker
- next_room_to_visit (*)
- num_animation_ticks (*)
- on_call (*)
- on_ground_anim (*)
- pee_anim (*)
- permanent_flags (*)
- playing_sounds_in_random_sequence (*)
- previous_action (*)
- profile (*)
- random_sound_sequence_parameters (*)
- remove_callbacks (*)
- shake_fist_anim (*)
- should_knock_on_doors (*)
- skip_next_tick (*)
- slow_animation (*)
- speed (*)
- staff_change_callbacks (*)
- tap_foot_anim (*)
- th (*)
- ticks (*)
- tile_x (*)
- tile_y (*)
- timer_function (*)
- timer_time (*)
- toilet_callback (*)
- user_of (*)
- vomit_anim (*)
- waiting_for_sound_effects_to_be_turned_on (*)
- walk_anims (*)
- world
- yawn_anim (*)
function Inspector:Inspector(...)
Parameters:
| Name | Type | Description |
|---|---|---|
| ... | ? | ? |
Declared on: line 31 of Lua/entities/humanoids/inspector.lua.
function Inspector:afterLoad(old, new)
Parameters:
| Name | Type | Description |
|---|---|---|
| old | ? | ? |
| new | ? | ? |
Overrides: Humanoid:afterLoad.
Declared on: line 89 of Lua/entities/humanoids/inspector.lua.
function Inspector:checkForReceptionDesk()
React to reception desk status
Declared on: line 74 of Lua/entities/humanoids/inspector.lua.
function Inspector:goHome()
Sends the inspector home
Overrides: Humanoid:goHome.
Declared on: line 47 of Lua/entities/humanoids/inspector.lua.
function Inspector:onDestroy()
Called when the inspector has left the map
Overrides: Humanoid:onDestroy.
Declared on: line 60 of Lua/entities/humanoids/inspector.lua.
function Inspector:setIfHoverMoodsVisible()
Disable showing inspector mood on hover
Overrides: Humanoid:setIfHoverMoodsVisible.
Declared on: line 42 of Lua/entities/humanoids/inspector.lua.
function Inspector:tick()
Overrides: Entity:tick.
Declared on: line 69 of Lua/entities/humanoids/inspector.lua.
function Inspector:updateDynamicInfo(action_string)
Labels the inspector as the "Health Inspector"
Parameters:
| Name | Type | Description |
|---|---|---|
| action_string | ? | ? |
Declared on: line 37 of Lua/entities/humanoids/inspector.lua.