Module travel

Functions related to (auto)traveling.

Functions

del_eclude (x, y) Remove an exclusion.
feature_is_solid (featurename) Is this feature solid?
feature_is_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.
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_is_solid (featurename)
Is this feature solid?

Parameters:

  • featurename string

Returns:

    boolean
feature_is_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)
waypoint_delta ()
Deltas to a given waypoint.

Returns:

  1. nil if the waypoint is not on the current floor
  2. int,int the x and y deltas to the waypoint
generated by LDoc 1.4.6 Last updated 2018-08-21 11:24:55