173 void (QDECL *Print)(
int type,
char *fmt, ...) Q_PRINTF_FUNC(2, 3);
175 void (*Trace)(bsp_trace_t *trace, vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end,
int passent,
int contentmask);
177 void (*EntityTrace)(bsp_trace_t *trace, vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end,
int entnum,
int contentmask);
179 int (*PointContents)(vec3_t point);
181 int (*inPVS)(vec3_t p1, vec3_t p2);
183 char *(*BSPEntityData)(void);
185 void (*BSPModelMinsMaxsOrigin)(
int modelnum, vec3_t angles, vec3_t mins, vec3_t maxs, vec3_t origin);
187 void (*BotClientCommand)(
int client,
char *command);
189 void *(*GetMemory)(
int size);
190 void (*FreeMemory)(
void *ptr);
191 int (*AvailableMemory)(void);
192 void *(*HunkAlloc)(
int size);
194 int (*FS_FOpenFile)(
const char *qpath, fileHandle_t *file, fsMode_t mode );
195 int (*FS_Read)(
void *buffer,
int len, fileHandle_t f );
196 int (*FS_Write)(
const void *buffer,
int len, fileHandle_t f );
197 void (*FS_FCloseFile)( fileHandle_t f );
198 int (*FS_Seek)( fileHandle_t f,
long offset,
int origin );
200 int (*DebugLineCreate)(void);
201 void (*DebugLineDelete)(
int line);
202 void (*DebugLineShow)(
int line, vec3_t start, vec3_t end,
int color);
204 int (*DebugPolygonCreate)(
int color,
int numPoints, vec3_t *points);
205 void (*DebugPolygonDelete)(
int id);
213 void (*AAS_EntityInfo)(
int entnum,
struct aas_entityinfo_s *info);
217 int (*AAS_Initialized)(void);
218 void (*AAS_PresenceTypeBoundingBox)(
int presencetype, vec3_t mins, vec3_t maxs);
219 float (*AAS_Time)(void);
223 int (*AAS_PointAreaNum)(vec3_t point);
224 int (*AAS_PointReachabilityAreaIndex)( vec3_t point );
225 int (*AAS_TraceAreas)(vec3_t start, vec3_t end,
int *areas, vec3_t *points,
int maxareas);
226 int (*AAS_BBoxAreas)(vec3_t absmins, vec3_t absmaxs,
int *areas,
int maxareas);
227 int (*AAS_AreaInfo)(
int areanum,
struct aas_areainfo_s *info );
231 int (*AAS_PointContents)(vec3_t point);
232 int (*AAS_NextBSPEntity)(
int ent);
233 int (*AAS_ValueForBSPEpairKey)(
int ent,
char *key,
char *value,
int size);
234 int (*AAS_VectorForBSPEpairKey)(
int ent,
char *key, vec3_t v);
235 int (*AAS_FloatForBSPEpairKey)(
int ent,
char *key,
float *value);
236 int (*AAS_IntForBSPEpairKey)(
int ent,
char *key,
int *value);
240 int (*AAS_AreaReachability)(
int areanum);
244 int (*AAS_AreaTravelTimeToGoalArea)(
int areanum, vec3_t origin,
int goalareanum,
int travelflags);
245 int (*AAS_EnableRoutingArea)(
int areanum,
int enable);
246 int (*AAS_PredictRoute)(
struct aas_predictroute_s *route,
int areanum, vec3_t origin,
247 int goalareanum,
int travelflags,
int maxareas,
int maxtime,
248 int stopevent,
int stopcontents,
int stoptfl,
int stopareanum);
252 int (*AAS_AlternativeRouteGoals)(vec3_t start,
int startareanum, vec3_t goal,
int goalareanum,
int travelflags,
253 struct aas_altroutegoal_s *altroutegoals,
int maxaltroutegoals,
258 int (*AAS_Swimming)(vec3_t origin);
259 int (*AAS_PredictClientMovement)(
struct aas_clientmove_s *move,
260 int entnum, vec3_t origin,
261 int presencetype,
int onground,
262 vec3_t velocity, vec3_t cmdmove,
264 int maxframes,
float frametime,
265 int stopevent,
int stopareanum,
int visualize);
305 int (*BotLoadCharacter)(
char *charfile,
float skill);
306 void (*BotFreeCharacter)(
int character);
307 float (*Characteristic_Float)(
int character,
int index);
308 float (*Characteristic_BFloat)(
int character,
int index,
float min,
float max);
309 int (*Characteristic_Integer)(
int character,
int index);
310 int (*Characteristic_BInteger)(
int character,
int index,
int min,
int max);
311 void (*Characteristic_String)(
int character,
int index,
char *buf,
int size);
315 int (*BotAllocChatState)(void);
316 void (*BotFreeChatState)(
int handle);
317 void (*BotQueueConsoleMessage)(
int chatstate,
int type,
char *message);
318 void (*BotRemoveConsoleMessage)(
int chatstate,
int handle);
319 int (*BotNextConsoleMessage)(
int chatstate,
struct bot_consolemessage_s *cm);
320 int (*BotNumConsoleMessages)(
int chatstate);
321 void (*BotInitialChat)(
int chatstate,
char *type,
int mcontext,
char *var0,
char *var1,
char *var2,
char *var3,
char *var4,
char *var5,
char *var6,
char *var7);
322 int (*BotNumInitialChats)(
int chatstate,
char *type);
323 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);
324 int (*BotChatLength)(
int chatstate);
325 void (*BotEnterChat)(
int chatstate,
int client,
int sendto);
326 void (*BotGetChatMessage)(
int chatstate,
char *buf,
int size);
327 int (*StringContains)(
char *str1,
char *str2,
int casesensitive);
328 int (*BotFindMatch)(
char *str,
struct bot_match_s *match,
unsigned long int context);
329 void (*BotMatchVariable)(
struct bot_match_s *match,
int variable,
char *buf,
int size);
330 void (*UnifyWhiteSpaces)(
char *string);
331 void (*BotReplaceSynonyms)(
char *string,
unsigned long int context);
332 int (*BotLoadChatFile)(
int chatstate,
char *chatfile,
char *chatname);
333 void (*BotSetChatGender)(
int chatstate,
int gender);
334 void (*BotSetChatName)(
int chatstate,
char *name,
int client);
338 void (*BotResetGoalState)(
int goalstate);
339 void (*BotResetAvoidGoals)(
int goalstate);
340 void (*BotRemoveFromAvoidGoals)(
int goalstate,
int number);
341 void (*BotPushGoal)(
int goalstate,
struct bot_goal_s *goal);
342 void (*BotPopGoal)(
int goalstate);
343 void (*BotEmptyGoalStack)(
int goalstate);
344 void (*BotDumpAvoidGoals)(
int goalstate);
345 void (*BotDumpGoalStack)(
int goalstate);
346 void (*BotGoalName)(
int number,
char *name,
int size);
347 int (*BotGetTopGoal)(
int goalstate,
struct bot_goal_s *goal);
348 int (*BotGetSecondGoal)(
int goalstate,
struct bot_goal_s *goal);
349 int (*BotChooseLTGItem)(
int goalstate, vec3_t origin,
int *inventory,
int travelflags);
350 int (*BotChooseNBGItem)(
int goalstate, vec3_t origin,
int *inventory,
int travelflags,
351 struct bot_goal_s *ltg,
float maxtime);
352 int (*BotTouchingGoal)(vec3_t origin,
struct bot_goal_s *goal);
353 int (*BotItemGoalInVisButNotVisible)(
int viewer, vec3_t eye, vec3_t viewangles,
struct bot_goal_s *goal);
354 int (*BotGetLevelItemGoal)(
int index,
char *classname,
struct bot_goal_s *goal);
355 int (*BotGetNextCampSpotGoal)(
int num,
struct bot_goal_s *goal);
356 int (*BotGetMapLocationGoal)(
char *name,
struct bot_goal_s *goal);
357 float (*BotAvoidGoalTime)(
int goalstate,
int number);
358 void (*BotSetAvoidGoalTime)(
int goalstate,
int number,
float avoidtime);
359 void (*BotInitLevelItems)(void);
360 void (*BotUpdateEntityItems)(void);
361 int (*BotLoadItemWeights)(
int goalstate,
char *filename);
362 void (*BotFreeItemWeights)(
int goalstate);
363 void (*BotInterbreedGoalFuzzyLogic)(
int parent1,
int parent2,
int child);
364 void (*BotSaveGoalFuzzyLogic)(
int goalstate,
char *filename);
365 void (*BotMutateGoalFuzzyLogic)(
int goalstate,
float range);
366 int (*BotAllocGoalState)(
int client);
367 void (*BotFreeGoalState)(
int handle);
371 void (*BotResetMoveState)(
int movestate);
372 void (*BotMoveToGoal)(
struct bot_moveresult_s *result,
int movestate,
struct bot_goal_s *goal,
int travelflags);
373 int (*BotMoveInDirection)(
int movestate, vec3_t dir,
float speed,
int type);
374 void (*BotResetAvoidReach)(
int movestate);
375 void (*BotResetLastAvoidReach)(
int movestate);
376 int (*BotReachabilityArea)(vec3_t origin,
int testground);
377 int (*BotMovementViewTarget)(
int movestate,
struct bot_goal_s *goal,
int travelflags,
float lookahead, vec3_t target);
378 int (*BotPredictVisiblePosition)(vec3_t origin,
int areanum,
struct bot_goal_s *goal,
int travelflags, vec3_t target);
379 int (*BotAllocMoveState)(void);
380 void (*BotFreeMoveState)(
int handle);
381 void (*BotInitMoveState)(
int handle,
struct bot_initmove_s *initmove);
382 void (*BotAddAvoidSpot)(
int movestate, vec3_t origin,
float radius,
int type);
386 int (*BotChooseBestFightWeapon)(
int weaponstate,
int *inventory);
387 void (*BotGetWeaponInfo)(
int weaponstate,
int weapon,
struct weaponinfo_s *weaponinfo);
388 int (*BotLoadWeaponWeights)(
int weaponstate,
char *filename);
389 int (*BotAllocWeaponState)(void);
390 void (*BotFreeWeaponState)(
int weaponstate);
391 void (*BotResetWeaponState)(
int weaponstate);
395 int (*GeneticParentsAndChildSelection)(
int numranks,
float *ranks,
int *parent1,
int *parent2,
int *child);