|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "main.qh"#include <common/stats.qh>#include <common/turrets/util.qh>#include <common/weapons/_all.qh>#include <server/command/common.qh>#include <server/pathlib/pathlib.qh>#include <server/pathlib/utility.qh>Go to the source code of this file.
Functions | |
| bool | buildpath_nodefilter_directional (vector n, vector c, vector p) |
| bool | buildpath_nodefilter_moveskip (entity this, vector n, vector c, vector p) |
| bool | buildpath_nodefilter_none (vector n, vector c, vector p) |
| float | Cosine_Interpolate (float a, float b, float c) |
| void | dumpnode (entity n) |
| entity | path_build (entity next, vector where, entity prev, entity start) |
| entity | pathlib_astar (entity this, vector from, vector to) |
| void | pathlib_cleanup () |
| void | pathlib_close_node (entity node, vector goal) |
| void | pathlib_deletepath (entity start) |
| entity | pathlib_getbestopen () |
| bool | pathlib_makenode_adaptive (entity parent, vector start, vector to, vector goal, float cost) |
| entity | pathlib_mknode (vector where, entity parent) |
Variables | |
| const float | PATHLIB_NODEEXPIRE = 20 |
Definition at line 298 of file main.qc.
References normalize(), vdist, and vector.
Referenced by pathlib_astar().
Definition at line 312 of file main.qc.
References entity(), pathlib_movenode_goodnode, pathlib_walknode(), and vector.
Definition at line 321 of file main.qc.
References vector.
Referenced by pathlib_waypointpath_step().
Definition at line 24 of file main.qc.
References entity(), g_pathlib_nodes, IL_REMOVE(), setthink, SUB_Remove(), and time.
Definition at line 326 of file main.qc.
References buildpath_nodefilter(), entity(), next, prev, spawn, and vector.
Referenced by pathlib_astar(), and pathlib_waypointpath_step().
Definition at line 353 of file main.qc.
References best_open_node, buildpath_nodefilter(), buildpath_nodefilter_directional(), ceil(), closedlist, entity(), fsnap(), ftos(), gettime(), GETTIME_REALTIME, goal_node, inwater, LOG_DEBUG, LOG_TRACE, maxs, mins, movenode_boxmax, movenode_boxmin, movenode_boxup, movenode_maxdrop, movenode_stepsize, movenode_stepup, NULL, openlist, path_build(), pathlib_bestcash_hits, pathlib_bestcash_saved, pathlib_bestopen_searched, pathlib_cleanup(), pathlib_close_node(), pathlib_closed_cnt, pathlib_cost(), pathlib_expandnode(), pathlib_expandnode_box(), pathlib_expandnode_star(), pathlib_foundgoal, pathlib_g_euclidean_water(), pathlib_getbestopen(), pathlib_gridsize, pathlib_h_diagonal(), pathlib_heuristic(), pathlib_made_cnt, pathlib_makenode(), pathlib_makenode_adaptive(), pathlib_maxtime, pathlib_merge_cnt, pathlib_mknode(), pathlib_movecost, pathlib_movecost_diag, pathlib_movecost_waterfactor, pathlib_movenode(), pathlib_open_cnt, pathlib_searched_cnt, pathlib_starttime, pathlib_swimnode(), pathlib_walknode(), spawn, sys_frametime, tile_check(), tile_check_cross(), tile_check_down, tile_check_size, tile_check_up, vector, and vlen().
Referenced by ewheel_findtarget(), ewheel_move_path(), walker_findtarget(), and walker_move_path().
| void pathlib_cleanup | ( | ) |
Definition at line 267 of file main.qc.
References best_open_node, closedlist, g_pathlib_nodes, IL_CLEAR, IL_EACH, NULL, and openlist.
Referenced by pathlib_astar().
Definition at line 238 of file main.qc.
References best_open_node, closedlist, entity(), goal_node, LOG_TRACE, NULL, pathlib_closed_cnt, pathlib_foundgoal, pathlib_gridsize, pathlib_movenode_goodnode, pathlib_open_cnt, pathlib_walknode(), vdist, and vector.
Referenced by pathlib_astar().
Definition at line 10 of file main.qc.
References entity(), FOREACH_ENTITY_ENT, owner, setthink, SUB_Remove(), and time.
Referenced by ewheel_move_path(), and walker_move_path().
| entity pathlib_getbestopen | ( | ) |
Definition at line 216 of file main.qc.
References best_open_node, entity(), FOREACH_ENTITY_ENT, NULL, openlist, owner, pathlib_bestcash_hits, pathlib_bestcash_saved, pathlib_bestopen_searched, and pathlib_open_cnt.
Referenced by pathlib_astar().
Definition at line 70 of file main.qc.
References best_open_node, entity(), ftos(), inwater, LOG_DEBUG, openlist, parent, pathlib_cost(), pathlib_expandnode(), pathlib_expandnode_box(), pathlib_expandnode_star(), pathlib_heuristic(), pathlib_merge_cnt, pathlib_mknode(), pathlib_movenode(), pathlib_movenode_goodnode, pathlib_nodeatpoint(), pathlib_searched_cnt, pathlib_swimnode(), pathlib_walknode(), tile_check(), vector, vlen(), and vtos().
Referenced by pathlib_astar().
Definition at line 38 of file main.qc.
References entity(), g_pathlib_nodes, IL_PUSH(), openlist, parent, pathlib_made_cnt, pathlib_nodeatpoint(), PATHLIB_NODEEXPIRE, pathlib_open_cnt, setthink, spawn, SUB_Remove(), time, and vector.
Referenced by pathlib_astar(), and pathlib_makenode_adaptive().
| const float PATHLIB_NODEEXPIRE = 20 |
Definition at line 22 of file main.qc.
Referenced by pathlib_mknode().