]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/pathlib.qh
Merge remote-tracking branch 'remotes/origin/master' into TimePath/itemsys
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / pathlib.qh
1 #ifndef PATHLIB_H
2 #define PATHLIB_H
3
4 //#define PATHLIB_RDFIELDS
5 #ifdef PATHLIB_RDFIELDS
6     #define path_next swampslug
7     #define path_prev lasertarget
8 #else
9     .entity path_next;
10     .entity path_prev;
11 #endif
12
13 entity openlist;
14 entity closedlist;
15 entity scraplist;
16
17 .float pathlib_node_g;
18 .float pathlib_node_h;
19 .float pathlib_node_f;
20
21 float pathlib_open_cnt;
22 float pathlib_closed_cnt;
23 float pathlib_made_cnt;
24 float pathlib_merge_cnt;
25 float pathlib_recycle_cnt;
26 float pathlib_searched_cnt;
27
28 float pathlib_bestopen_seached;
29 float pathlib_bestcash_hits;
30 float pathlib_bestcash_saved;
31
32 float pathlib_gridsize;
33
34 float pathlib_movecost;
35 float pathlib_movecost_diag;
36 float pathlib_movecost_waterfactor;
37
38 float pathlib_edge_check_size;
39
40 float pathlib_foundgoal;
41 entity goal_node;
42
43 entity best_open_node;
44 .float is_path_node;
45
46 #define inwater(point) (pointcontents(point) == CONTENT_WATER)
47
48 #endif