Xonotic
|
#include "costs.qh"
Go to the source code of this file.
Functions | |
float | pathlib_g_euclidean (entity parent, vector to, float static_cost) |
float | pathlib_g_euclidean_water (entity parent, vector to, float static_cost) |
float | pathlib_g_static (entity parent, vector to, float static_cost) |
float | pathlib_g_static_water (entity parent, vector to, float static_cost) |
float | pathlib_h_diagonal (vector a, vector b) |
This heuristic consider both straight and diagonal moves to have the same cost. More... | |
float | pathlib_h_diagonal2 (vector a, vector b) |
This heuristic consider both straight and diagonal moves, but has a separate cost for diagonal moves. More... | |
float | pathlib_h_diagonal2sdp (vector preprev, vector prev, vector point, vector end) |
This heuristic consider both straight and diagonal moves, But has a separate cost for diagonal moves. More... | |
float | pathlib_h_diagonal3 (vector a, vector b) |
float | pathlib_h_euclidean (vector a, vector b) |
This heuristic only considers the straight line distance. More... | |
float | pathlib_h_manhattan (vector a, vector b) |
Manhattan heuristic means we expect to move up, down left or right No diagonal moves expected. More... | |
Definition at line 21 of file costs.qc.
References inwater, pathlib_movecost_waterfactor, and vlen().
Referenced by pathlib_astar().
This heuristic consider both straight and diagonal moves to have the same cost.
Definition at line 49 of file costs.qc.
References fabs(), max(), and pathlib_movecost.
Referenced by pathlib_astar().
This heuristic consider both straight and diagonal moves, but has a separate cost for diagonal moves.
Definition at line 74 of file costs.qc.
References fabs(), min(), pathlib_movecost, and pathlib_movecost_diag.
This heuristic consider both straight and diagonal moves, But has a separate cost for diagonal moves.
Definition at line 98 of file costs.qc.
References fabs(), normalize(), pathlib_movecost, pathlib_movecost_diag, vector(), and vlen().
Definition at line 122 of file costs.qc.
References fabs(), pathlib_movecost, and pathlib_movecost_diag.
Manhattan heuristic means we expect to move up, down left or right No diagonal moves expected.
(like moving between city blocks)
Definition at line 34 of file costs.qc.
References fabs(), and pathlib_gridsize.