Module travel
Functions related to (auto)traveling.
Functions
del_eclude (x, y) | Remove an exclusion. |
feature_solid (featurename) | Is this feature solid? |
feature_traversable (featurename) | Can we get across this without swimming or flying? |
find_deepest_explored (branch) | What's the deepest floor we've reached in this branch? |
set_exclude (x, y[, r=LOS_RADIUS]) | Set an exclusion. |
set_waypoint (waynum, x, y) | Set a numbered waypoint. |
waypoint_delta () | Deltas to a given waypoint. |
Functions
- del_eclude (x, y)
-
Remove an exclusion.
Uses player-centered coordinates
Parameters:
- x int
- y int
- feature_solid (featurename)
-
Is this feature solid?
Parameters:
- featurename string
Returns:
-
boolean
- feature_traversable (featurename)
-
Can we get across this without swimming or flying?
Parameters:
- featurename string
Returns:
-
boolean
- find_deepest_explored (branch)
-
What's the deepest floor we've reached in this branch?
Parameters:
- branch string
Returns:
-
int
depth
- set_exclude (x, y[, r=LOS_RADIUS])
-
Set an exclusion.
Uses player-centered coordinates
Parameters:
- x int
- y int
- r int (default LOS_RADIUS)
- set_waypoint (waynum, x, y)
-
Set a numbered waypoint.
Uses player-centered coordinates
Parameters:
- waynum int
- x int
- y int
- waypoint_delta ()
-
Deltas to a given waypoint.
Returns:
- nil if the waypoint is not on the current floor
- int,int the x and y deltas to the waypoint