|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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. | |
| float | pathlib_h_diagonal2 (vector a, vector b) |
| This heuristic consider both straight and diagonal moves, but has a separate cost for diagonal moves. | |
| 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. | |
| float | pathlib_h_diagonal3 (vector a, vector b) |
| float | pathlib_h_euclidean (vector a, vector b) |
| This heuristic only considers the straight line distance. | |
| float | pathlib_h_manhattan (vector a, vector b) |
| Manhattan heuristic means we expect to move up, down left or right No diagonal moves expected. | |
Definition at line 21 of file costs.qc.
References entity(), inwater, parent, pathlib_movecost_waterfactor, vector, 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(), pathlib_movecost, and vector.
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, pathlib_movecost_diag, and vector.
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, prev, vector, and vlen().
Definition at line 122 of file costs.qc.
References fabs(), pathlib_movecost, pathlib_movecost_diag, and vector.
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(), pathlib_gridsize, and vector.