160 void (QDECL *Print)(
int type,
char *fmt, ...);
162 void (*Trace)(bsp_trace_t *trace, vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end,
int passent,
int contentmask);
164 void (*EntityTrace)(bsp_trace_t *trace, vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end,
int entnum,
int contentmask);
166 int (*PointContents)(vec3_t point);
168 int (*inPVS)(vec3_t p1, vec3_t p2);
170 char *(*BSPEntityData)(void);
172 void (*BSPModelMinsMaxsOrigin)(
int modelnum, vec3_t angles, vec3_t mins, vec3_t maxs, vec3_t origin);
174 void (*BotClientCommand)(
int client,
const char *command);
176 void *(*GetMemory)(
int size);
177 void (*FreeMemory)(
void *ptr);
178 int (*AvailableMemory)(void);
179 void *(*HunkAlloc)(
int size);
181 int (*FS_FOpenFile)(
const char *qpath, fileHandle_t *file, fsMode_t mode );
182 int (*FS_Read)(
void *buffer,
int len, fileHandle_t f );
183 int (*FS_Write)(
const void *buffer,
int len, fileHandle_t f );
184 void (*FS_FCloseFile)( fileHandle_t f );
185 int (*FS_Seek)( fileHandle_t f,
long offset,
int origin );
187 int (*DebugLineCreate)(void);
188 void (*DebugLineDelete)(
int line);
189 void (*DebugLineShow)(
int line, vec3_t start, vec3_t end,
int color);
191 int (*DebugPolygonCreate)(
int color,
int numPoints, vec3_t *points);
192 void (*DebugPolygonDelete)(
int id);
200 void (*AAS_EntityInfo)(
int entnum,
struct aas_entityinfo_s *info);
204 int (*AAS_Initialized)(void);
205 void (*AAS_PresenceTypeBoundingBox)(
int presencetype, vec3_t mins, vec3_t maxs);
206 float (*AAS_Time)(void);
210 int (*AAS_PointAreaNum)(vec3_t point);
211 int (*AAS_PointReachabilityAreaIndex)( vec3_t point );
212 int (*AAS_TraceAreas)(vec3_t start, vec3_t end,
int *areas, vec3_t *points,
int maxareas);
213 int (*AAS_BBoxAreas)(vec3_t absmins, vec3_t absmaxs,
int *areas,
int maxareas);
214 int (*AAS_AreaInfo)(
int areanum,
struct aas_areainfo_s *info );
218 int (*AAS_PointContents)(vec3_t point);
219 int (*AAS_NextBSPEntity)(
int ent);
220 int (*AAS_ValueForBSPEpairKey)(
int ent,
char *key,
char *value,
int size);
221 int (*AAS_VectorForBSPEpairKey)(
int ent,
char *key, vec3_t v);
222 int (*AAS_FloatForBSPEpairKey)(
int ent,
char *key,
float *value);
223 int (*AAS_IntForBSPEpairKey)(
int ent,
char *key,
int *value);
227 int (*AAS_AreaReachability)(
int areanum);
231 int (*AAS_AreaTravelTimeToGoalArea)(
int areanum, vec3_t origin,
int goalareanum,
int travelflags);
232 int (*AAS_EnableRoutingArea)(
int areanum,
int enable);
233 int (*AAS_PredictRoute)(
struct aas_predictroute_s *route,
int areanum, vec3_t origin,
234 int goalareanum,
int travelflags,
int maxareas,
int maxtime,
235 int stopevent,
int stopcontents,
int stoptfl,
int stopareanum);
239 int (*AAS_AlternativeRouteGoals)(vec3_t start,
int startareanum, vec3_t goal,
int goalareanum,
int travelflags,
240 struct aas_altroutegoal_s *altroutegoals,
int maxaltroutegoals,
245 int (*AAS_Swimming)(vec3_t origin);
246 int (*AAS_PredictClientMovement)(
struct aas_clientmove_s *move,
247 int entnum, vec3_t origin,
248 int presencetype,
int onground,
249 vec3_t velocity, vec3_t cmdmove,
251 int maxframes,
float frametime,
252 int stopevent,
int stopareanum,
int visualize);
293 int (*BotLoadCharacter)(
char *charfile,
float skill);
294 void (*BotFreeCharacter)(
int character);
295 float (*Characteristic_Float)(
int character,
int index);
296 float (*Characteristic_BFloat)(
int character,
int index,
float min,
float max);
297 int (*Characteristic_Integer)(
int character,
int index);
298 int (*Characteristic_BInteger)(
int character,
int index,
int min,
int max);
299 void (*Characteristic_String)(
int character,
int index,
char *buf,
int size);
303 int (*BotAllocChatState)(void);
304 void (*BotFreeChatState)(
int handle);
305 void (*BotQueueConsoleMessage)(
int chatstate,
int type,
char *message);
306 void (*BotRemoveConsoleMessage)(
int chatstate,
int handle);
307 int (*BotNextConsoleMessage)(
int chatstate,
struct bot_consolemessage_s *cm);
308 int (*BotNumConsoleMessages)(
int chatstate);
309 void (*BotInitialChat)(
int chatstate,
char *type,
int mcontext,
char *var0,
char *var1,
char *var2,
char *var3,
char *var4,
char *var5,
char *var6,
char *var7);
310 int (*BotNumInitialChats)(
int chatstate,
char *type);
311 int (*BotReplyChat)(
int chatstate,
char *message,
int mcontext,
int vcontext,
char *var0,
char *var1,
char *var2,
char *var3,
char *var4,
char *var5,
char *var6,
char *var7);
312 int (*BotChatLength)(
int chatstate);
313 void (*BotEnterChat)(
int chatstate,
int client,
int sendto);
314 void (*BotGetChatMessage)(
int chatstate,
char *buf,
int size);
315 int (*StringContains)(
char *str1,
char *str2,
int casesensitive);
316 int (*BotFindMatch)(
char *
str,
struct bot_match_s *match,
unsigned long int context);
317 void (*BotMatchVariable)(
struct bot_match_s *match,
int variable,
char *buf,
int size);
318 void (*UnifyWhiteSpaces)(
char *string);
319 void (*BotReplaceSynonyms)(
char *string,
unsigned long int context);
320 int (*BotLoadChatFile)(
int chatstate,
char *chatfile,
char *chatname);
321 void (*BotSetChatGender)(
int chatstate,
int gender);
322 void (*BotSetChatName)(
int chatstate,
char *name,
int client);
326 void (*BotResetGoalState)(
int goalstate);
327 void (*BotResetAvoidGoals)(
int goalstate);
328 void (*BotRemoveFromAvoidGoals)(
int goalstate,
int number);
329 void (*BotPushGoal)(
int goalstate,
struct bot_goal_s *goal);
330 void (*BotPopGoal)(
int goalstate);
331 void (*BotEmptyGoalStack)(
int goalstate);
332 void (*BotDumpAvoidGoals)(
int goalstate);
333 void (*BotDumpGoalStack)(
int goalstate);
334 void (*BotGoalName)(
int number,
char *name,
int size);
335 int (*BotGetTopGoal)(
int goalstate,
struct bot_goal_s *goal);
336 int (*BotGetSecondGoal)(
int goalstate,
struct bot_goal_s *goal);
337 int (*BotChooseLTGItem)(
int goalstate, vec3_t origin,
int *inventory,
int travelflags);
338 int (*BotChooseNBGItem)(
int goalstate, vec3_t origin,
int *inventory,
int travelflags,
339 struct bot_goal_s *ltg,
float maxtime);
340 int (*BotTouchingGoal)(vec3_t origin,
struct bot_goal_s *goal);
341 int (*BotItemGoalInVisButNotVisible)(
int viewer, vec3_t eye, vec3_t viewangles,
struct bot_goal_s *goal);
342 int (*BotGetLevelItemGoal)(
int index,
char *classname,
struct bot_goal_s *goal);
343 int (*BotGetNextCampSpotGoal)(
int num,
struct bot_goal_s *goal);
344 int (*BotGetMapLocationGoal)(
char *name,
struct bot_goal_s *goal);
345 float (*BotAvoidGoalTime)(
int goalstate,
int number);
346 void (*BotSetAvoidGoalTime)(
int goalstate,
int number,
float avoidtime);
347 void (*BotInitLevelItems)(void);
348 void (*BotUpdateEntityItems)(void);
349 int (*BotLoadItemWeights)(
int goalstate,
char *filename);
350 void (*BotFreeItemWeights)(
int goalstate);
351 void (*BotInterbreedGoalFuzzyLogic)(
int parent1,
int parent2,
int child);
352 void (*BotSaveGoalFuzzyLogic)(
int goalstate,
char *filename);
353 void (*BotMutateGoalFuzzyLogic)(
int goalstate,
float range);
354 int (*BotAllocGoalState)(
int client);
355 void (*BotFreeGoalState)(
int handle);
359 void (*BotResetMoveState)(
int movestate);
360 void (*BotMoveToGoal)(
struct bot_moveresult_s *result,
int movestate,
struct bot_goal_s *goal,
int travelflags);
361 int (*BotMoveInDirection)(
int movestate, vec3_t dir,
float speed,
int type);
362 void (*BotResetAvoidReach)(
int movestate);
363 void (*BotResetLastAvoidReach)(
int movestate);
364 int (*BotReachabilityArea)(vec3_t origin,
int testground);
365 int (*BotMovementViewTarget)(
int movestate,
struct bot_goal_s *goal,
int travelflags,
float lookahead, vec3_t target);
366 int (*BotPredictVisiblePosition)(vec3_t origin,
int areanum,
struct bot_goal_s *goal,
int travelflags, vec3_t target);
367 int (*BotAllocMoveState)(void);
368 void (*BotFreeMoveState)(
int handle);
369 void (*BotInitMoveState)(
int handle,
struct bot_initmove_s *initmove);
370 void (*BotAddAvoidSpot)(
int movestate, vec3_t origin,
float radius,
int type);
374 int (*BotChooseBestFightWeapon)(
int weaponstate,
int *inventory);
375 void (*BotGetWeaponInfo)(
int weaponstate,
int weapon,
struct weaponinfo_s *weaponinfo);
376 int (*BotLoadWeaponWeights)(
int weaponstate,
char *filename);
377 int (*BotAllocWeaponState)(void);
378 void (*BotFreeWeaponState)(
int weaponstate);
379 void (*BotResetWeaponState)(
int weaponstate);
383 int (*GeneticParentsAndChildSelection)(
int numranks,
float *ranks,
int *parent1,
int *parent2,
int *child);