X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fdefault%2Fnavigation.qh;h=ad01776652b4de67098af9f77e5057d8df13e196;hb=d492869ab1f18e05121529b7bcffcb637d13994c;hp=cf4a5ce5b261dcf6c4e154bef405c480d85a2afb;hpb=13719cec41a5a1b20d0fff3fe1b6df449bc2a884;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/default/navigation.qh b/qcsrc/server/bot/default/navigation.qh index cf4a5ce5b..ad0177665 100644 --- a/qcsrc/server/bot/default/navigation.qh +++ b/qcsrc/server/bot/default/navigation.qh @@ -1,5 +1,4 @@ -#ifndef NAVIGATION_H -#define NAVIGATION_H +#pragma once /* * Globals and Fields */ @@ -11,7 +10,6 @@ float navigation_testtracewalk; vector jumpstepheightvec; vector stepheightvec; -entity botframe_dangerwaypoint; entity navigation_bestgoal; // stack of current goals (the last one of which may be an item or other @@ -51,30 +49,29 @@ float bot_waypoint_queue_bestgoalrating; */ void debugresetnodes(); -void debugnode(vector node); +void debugnode(entity this, vector node); void debugnodestatus(vector position, float status); -void debuggoalstack(); +void debuggoalstack(entity this); float tracewalk(entity e, vector start, vector m1, vector m2, vector end, float movemode); -float navigation_markroutes_nearestwaypoints(entity waylist, float maxdist); -float navigation_routetogoal(entity e, vector startposition); +float navigation_markroutes_nearestwaypoints(entity this, float maxdist); +float navigation_routetogoal(entity this, entity e, vector startposition); -void navigation_clearroute(); -void navigation_pushroute(entity e); -void navigation_poproute(); +void navigation_clearroute(entity this); +void navigation_pushroute(entity this, entity e); +void navigation_poproute(entity this); void navigation_markroutes_checkwaypoint(entity w, entity wp, float cost2, vector p); -void navigation_markroutes(entity fixed_source_waypoint); +void navigation_markroutes(entity this, entity fixed_source_waypoint); void navigation_markroutes_inverted(entity fixed_source_waypoint); -void navigation_routerating(entity e, float f, float rangebias); -void navigation_poptouchedgoals(); -void navigation_goalrating_start(); -void navigation_goalrating_end(); -void navigation_unstuck(); +void navigation_routerating(entity this, entity e, float f, float rangebias); +void navigation_poptouchedgoals(entity this); +void navigation_goalrating_start(entity this); +void navigation_goalrating_end(entity this); +void navigation_unstuck(entity this); void botframe_updatedangerousobjects(float maxupdate); entity navigation_findnearestwaypoint(entity ent, float walkfromwp); float navigation_waypoint_will_link(vector v, vector org, entity ent, float walkfromwp, float bestdist); -#endif