Vip Class
A `Vip` who is in the hospital to evaluate the hospital and produce a report
Method Index
- _tick() (inherited from Entity)
- afterLoad(old, new) (overrides Humanoid:afterLoad)
- announce()
- changeAttribute(attribute, amount) (inherited from Humanoid)
- clearDynamicInfo() (inherited from Entity)
- dump() (inherited from Humanoid)
- evaluateEmergency(success)
- evaluateRoom()
- finishAction(action) (inherited from Humanoid)
- getCurrentMood() (inherited from Humanoid)
- getDrawingLayer() (inherited from Humanoid)
- getDynamicInfo() (inherited from Entity)
- getIdleAnimation(humanoid_class) (inherited from Humanoid)
- getRoom() (inherited from Humanoid)
- goHome()
- goingToUseObject(object_type) (inherited from Humanoid)
- handleRemovedObject(object) (inherited from Humanoid)
- hasLeavingAction() (inherited from Humanoid)
- isLeaving() (inherited from Humanoid)
- isMoodActive(mood) (inherited from Humanoid)
- notifyNewObject(id) (inherited from Entity)
- onClick(ui, button) (inherited from Humanoid)
- onDestroy() (overrides Humanoid:onDestroy)
- playSound(name) (inherited from Entity)
- queueAction(action, pos) (inherited from Humanoid)
- registerRoomBuildCallback(callback) (inherited from Humanoid)
- registerRoomRemoveCallback(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)
- 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)
- setVIPRating()
- tick() (inherited from Entity)
- tickDay() (overrides Humanoid:tickDay)
- tire(amount) (inherited from Humanoid)
- unregisterCallbacks() (inherited from Humanoid)
- unregisterRoomBuildCallback(callback) (inherited from Humanoid)
- unregisterRoomRemoveCallback(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 (*)
- action_string
- active_moods (*)
- animation_flags (*)
- animation_idx (*)
- announced
- associated_desk (*)
- attributes
- build_callback (*)
- build_callbacks (*)
- cash_reward
- check_watch_anim (*)
- die_anims (*)
- door_anims (*)
- dynamic_info (*)
- enter_cures
- enter_deaths
- enter_explosions
- enter_visitors
- falling_anim (*)
- found_vomit
- get_up_anim (*)
- going_home
- has_fallen (*)
- has_vomitted (*)
- hospital
- hover_cursor
- humanoid_class (*)
- in_room (*)
- last_hospital
- last_move_direction (*)
- layers (*)
- message_callback (*)
- mood_info (*)
- name
- next_room
- next_room_no
- num_animation_ticks (*)
- num_visited_rooms
- num_vomit_inducing
- num_vomit_noninducing
- on_call (*)
- on_ground_anim (*)
- pee_anim (*)
- permanent_flags (*)
- previous_action (*)
- profile (*)
- remove_callbacks (*)
- room_eval
- shake_fist_anim (*)
- should_knock_on_doors (*)
- skip_next_tick (*)
- slow_animation (*)
- speed (*)
- tap_foot_anim (*)
- th (*)
- ticks (*)
- tile_x (*)
- tile_y (*)
- timer_function (*)
- timer_time (*)
- toilet_callback (*)
- user_of (*)
- vip_rating
- vomit_anim (*)
- waiting
- walk_anims (*)
- world
- yawn_anim (*)
function Vip:Vip(...)
Parameters:
Name | Type | Description |
---|---|---|
... | ? | ? |
Declared on: line 24 of Lua/entities/vip.lua.
function Vip:afterLoad(old, new)
Parameters:
Name | Type | Description |
---|---|---|
old | ? | ? |
new | ? | ? |
Overrides: Humanoid:afterLoad.
Declared on: line 506 of Lua/entities/vip.lua.
function Vip:announce()
Declared on: line 189 of Lua/entities/vip.lua.
function Vip:evaluateEmergency(success)
Parameters:
Name | Type | Description |
---|---|---|
success | ? | ? |
Declared on: line 247 of Lua/entities/vip.lua.
function Vip:evaluateRoom()
Declared on: line 201 of Lua/entities/vip.lua.
function Vip:goHome()
Declared on: line 106 of Lua/entities/vip.lua.
function Vip:onDestroy()
called when the vip is out of the hospital grounds
Overrides: Humanoid:onDestroy.
Declared on: line 121 of Lua/entities/vip.lua.
function Vip:setVIPRating()
Declared on: line 258 of Lua/entities/vip.lua.
function Vip:tickDay()
Check if it is cold or hot around the vip and increase/decrease the
feeling of warmth accordingly. Returns whether the calling function should proceed.
Overrides: Humanoid:tickDay.
Declared on: line 47 of Lua/entities/vip.lua.
function Vip:updateDynamicInfo(action_string)
display the VIP name in the info box
Parameters:
Name | Type | Description |
---|---|---|
action_string | ? | ? |
Declared on: line 101 of Lua/entities/vip.lua.