WalkAction Class
Method Index
- afterLoad(old, new) (inherited from HumanoidAction)
- disableTruncate() (inherited from HumanoidAction)
- enableWalkingToVaccinate()
- setAfterUse(after_use) (inherited from HumanoidAction)
- setCount(count) (inherited from HumanoidAction)
- setIsEntering(entering)
- setIsLeaving(is_leaving) (inherited from HumanoidAction)
- setLoopCallback(loop_callback) (inherited from HumanoidAction)
- setMustHappen(must_happen) (inherited from HumanoidAction)
- setUninterruptible(uninterruptible) (inherited from HumanoidAction)
- truncateOnHighPriority()
Member Index
- after_use (*)
- count (*)
- idle_must_happen (*)
- is_entering
- is_leaving (*)
- loop_callback (*)
- must_happen (*)
- name (*)
- no_truncate (*)
- saved_must_happen (*)
- state (*)
- trimmed
- truncate_only_on_high_priority
- uninterruptible (*)
- walking_to_vaccinate
- x
- y
function WalkAction:WalkAction(x, y, trimmed)
Action to walk to a given position.
Parameters:
| Name | Type | Description |
|---|---|---|
| x | int | X coordinate of the destination tile. |
| y | int | Y coordinate of the destination tile. |
| trimmed | boolean | Optional parameter to finish action on re-route |
Declared on: line 26 of Lua/humanoid_actions/walk.lua.
function WalkAction:enableWalkingToVaccinate()
Nurse is walking with the intention to vaccinate.
Declared on: line 48 of Lua/humanoid_actions/walk.lua.
function WalkAction:setIsEntering(entering)
Set a flag whether the walk enters a room.
Parameters:
| Name | Type | Description |
|---|---|---|
| entering | bool | If set or nil, set the flag of entering the room. |
Declared on: line 55 of Lua/humanoid_actions/walk.lua.