X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fpathlib%2Fpathlib.qh;h=2616a77369fb767b5d6ca9c8f89ca0e60676ec83;hb=a8bd3cc5d528ea7840a60bae465807cff3f96ae1;hp=1ceadbc8480faf5473f58fe16a28691c3fa80b97;hpb=e3746a1f762597b2ca317c4914c052bf229b9f91;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/pathlib/pathlib.qh b/qcsrc/server/pathlib/pathlib.qh index 1ceadbc84..2616a7736 100644 --- a/qcsrc/server/pathlib/pathlib.qh +++ b/qcsrc/server/pathlib/pathlib.qh @@ -1,3 +1,4 @@ +.entity pathlib_list; .entity path_next; .entity path_prev; @@ -18,12 +19,15 @@ void pathlib_showpath2(entity path); entity openlist; entity closedlist; entity edgelist; + entity goal_node; +entity start_node; .float is_path_node; .float pathlib_node_g; .float pathlib_node_h; .float pathlib_node_f; +.float pathlib_node_c; #define pathlib_node_edgeflag_unknown 0 #define pathlib_node_edgeflag_left 2 @@ -59,10 +63,10 @@ entity best_open_node; vector tile_check_up; vector tile_check_down; float tile_check_size; -float tile_check_cross(vector where); -float tile_check_plus(vector where); -float tile_check_star(vector where); -var float tile_check(vector where); +float tile_check_cross(vector where); +float tile_check_plus(vector where); +float tile_check_star(vector where); +var float tile_check(vector where); float movenode_stepsize; vector movenode_stepup; @@ -95,14 +99,17 @@ float pathlib_h_euclidean(vector a,vector b); float pathlib_h_diagonal2(vector a, vector b); float pathlib_h_diagonal3(vector a, vector b); float pathlib_h_diagonal2sdp(vector preprev, vector prev, vector point, vector end); +float pathlib_h_none(vector preprev, vector prev) { return 0; } var float pathlib_heuristic(vector from, vector to); var float pathlib_makenode(entity parent,vector start, vector to, vector goal,float cost); var float buildpath_nodefilter(vector n,vector c,vector p); +var float pathlib_wpp_waypointcallback(entity wp, entity wp_prev); +var const float pathlib_wpp_wpcb_null(); #ifdef DEBUGPATHING -#include "debug.qc" + #include "debug.qc" #endif #include "utility.qc"