Pathfinding

v0.1.0

  • Pages
  • Modules

    Pathfinding v0.1.0 Pathfinding View Source

    Simple pathfinding module

    Link to this section Summary

    Functions

    calculate(search, grid)
    can_afford(source_node, cost, cost_threshold)
    check_adjacent_node(search, grid, source_node, x, y)
    coordinate_to_node(search, parent, x, y, cost)
    find_path(grid, start_x, start_y, end_x, end_y, cost_threshold \\ nil)
    find_walkable(grid, coord, cost_threshold \\ nil)
    get_distance(x1, y1, x2, y2)

    Link to this section Functions

    Link to this function

    calculate(search, grid) View Source

    Link to this function

    can_afford(source_node, cost, cost_threshold) View Source

    Link to this function

    check_adjacent_node(search, grid, source_node, x, y) View Source

    Link to this function

    coordinate_to_node(search, parent, x, y, cost) View Source

    Link to this function

    find_path(grid, start_x, start_y, end_x, end_y, cost_threshold \\ nil) View Source

    Link to this function

    find_walkable(grid, coord, cost_threshold \\ nil) View Source

    Link to this function

    get_distance(x1, y1, x2, y2) View Source

    Built using ExDoc (v0.19.3), designed by Friedel Ziegelmayer.