This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 58 of file ai_main.h. Referenced by BotCheckItemPickup(), BotGetLongTermGoal(), BotMatch_WhatAreYouDoing(), BotReportStatus(), BotSetInfoConfigString(), and BotSetTeamStatus(). |
|
|
Definition at line 52 of file ai_main.h. Referenced by BotGetLongTermGoal(), BotMatch_WhatAreYouDoing(), BotReportStatus(), BotSetInfoConfigString(), BotSetTeamStatus(), and BotWantsToCamp(). |
|
|
Definition at line 53 of file ai_main.h. Referenced by BotCTFSeekGoals(), BotMatch_WhatAreYouDoing(), BotReportStatus(), BotSetInfoConfigString(), BotSetTeamStatus(), and BotWantsToCamp(). |
|
|
Definition at line 48 of file ai_main.h. Referenced by BotCTFSeekGoals(), BotGetLongTermGoal(), BotMatch_WhatAreYouDoing(), BotReportStatus(), BotSetInfoConfigString(), BotSetTeamStatus(), and BotWantsToCamp(). |
|
|
Definition at line 49 of file ai_main.h. Referenced by BotCheckItemPickup(), BotCTFSeekGoals(), BotMatch_WhatAreYouDoing(), BotReportStatus(), BotSetInfoConfigString(), BotSetTeamStatus(), and BotWantsToCamp(). |
|
|
Definition at line 55 of file ai_main.h. Referenced by BotCTFSeekGoals(), BotGetLongTermGoal(), BotMatch_WhatAreYouDoing(), BotReportStatus(), BotSetInfoConfigString(), and BotSetTeamStatus(). |
|
|
Definition at line 57 of file ai_main.h. Referenced by BotGetLongTermGoal(), BotMatch_WhatAreYouDoing(), BotReportStatus(), BotSetInfoConfigString(), and BotSetTeamStatus(). |
|
|
Definition at line 56 of file ai_main.h. Referenced by BotGetLongTermGoal(), BotMatch_WhatAreYouDoing(), BotReportStatus(), BotSetInfoConfigString(), and BotSetTeamStatus(). |
|
|
|
|
|
Definition at line 59 of file ai_main.h. Referenced by BotCTFSeekGoals(). |
|
|
Definition at line 54 of file ai_main.h. Referenced by BotCTFSeekGoals(), BotGetLongTermGoal(), BotMatch_WhatAreYouDoing(), BotReportStatus(), BotSetInfoConfigString(), and BotSetTeamStatus(). |
|
|
Definition at line 51 of file ai_main.h. Referenced by BotCTFSeekGoals(), BotMatch_WhatAreYouDoing(), BotReportStatus(), BotSetInfoConfigString(), and BotSetTeamStatus(). |
|
|
Definition at line 50 of file ai_main.h. Referenced by BotCTFSeekGoals(), BotGetLongTermGoal(), BotMatch_WhatAreYouDoing(), BotReportStatus(), BotSetInfoConfigString(), BotSetTeamStatus(), and BotWantsToCamp(). |
|
|
Definition at line 47 of file ai_main.h. Referenced by BotChat_Random(), BotCTFSeekGoals(), BotGetLongTermGoal(), BotMatch_WhatAreYouDoing(), BotReportStatus(), BotSetInfoConfigString(), BotSetTeamStatus(), and BotWantsToCamp(). |
|
|
Definition at line 46 of file ai_main.h. Referenced by BotChat_Random(), BotCTFSeekGoals(), BotGetLongTermGoal(), BotMatch_WhatAreYouDoing(), BotReportStatus(), BotSetInfoConfigString(), BotSetTeamStatus(), and BotWantsToCamp(). |
|
|
Definition at line 102 of file ai_main.h. Referenced by BotGetActivateGoal(). |
|
|
|
|
|
Definition at line 36 of file ai_main.h. Referenced by CG_RegisterGraphics(), CG_RegisterSounds(), and SaveRegisteredItems(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 82 of file ai_main.h. Referenced by BotCTFSeekGoals(), and BotMatch_TaskPreference(). |
|
|
|
|
|
|
|
Referenced by BotCreateWayPoint(), BotFindWayPoint(), BotFreeWaypoints(), BotGetLongTermGoal(), BotGetMessageTeamGoal(), BotGetPatrolWaypoints(), and BotMatch_CheckPoint(). |
|
||||||||||||||||
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 162 of file ai_main.c. References gentity_s::client, g_entities, gentity_t, gentity_s::inuse, memcpy(), playerState_t, gclient_s::ps, and state. Referenced by BotAI(), BotClientTravelTimeToGoal(), BotFirstClientInRankings(), BotIsFirstInRankings(), BotIsLastInRankings(), BotLastClientInRankings(), and EntityIsDead(). 00162 {
00163 gentity_t *ent;
00164
00165 ent = &g_entities[clientNum];
00166 if ( !ent->inuse ) {
00167 return qfalse;
00168 }
00169 if ( !ent->client ) {
00170 return qfalse;
00171 }
00172
00173 memcpy( state, &ent->client->ps, sizeof(playerState_t) );
00174 return qtrue;
00175 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 182 of file ai_main.c. References entityState_t, g_entities, gentity_t, gentity_s::inuse, entityShared_t::linked, memcpy(), memset(), gentity_s::r, gentity_s::s, state, and entityShared_t::svFlags. Referenced by BotAI_GetSnapshotEntity(), BotCheckSnapshot(), and BotClearPath(). 00182 {
00183 gentity_t *ent;
00184
00185 ent = &g_entities[entityNum];
00186 memset( state, 0, sizeof(entityState_t) );
00187 if (!ent->inuse) return qfalse;
00188 if (!ent->r.linked) return qfalse;
00189 if (ent->r.svFlags & SVF_NOCLIENT) return qfalse;
00190 memcpy( state, &ent->s, sizeof(entityState_t) );
00191 return qtrue;
00192 }
|
Here is the call graph for this function:

|
||||||||||||||||
|
Definition at line 199 of file ai_main.c. References BotAI_GetEntityState(), entityState_t, memset(), state, and trap_BotGetSnapshotEntity(). Referenced by BotCheckSnapshot(). 00199 {
00200 int entNum;
00201
00202 entNum = trap_BotGetSnapshotEntity( clientNum, sequence );
00203 if ( entNum == -1 ) {
00204 memset(state, 0, sizeof(entityState_t));
00205 return -1;
00206 }
00207
00208 BotAI_GetEntityState( entNum, state );
00209
00210 return sequence + 1;
00211 }
|
Here is the call graph for this function:

|
||||||||||||||||
|
Definition at line 95 of file ai_main.c. References G_Error(), G_Printf(), PRT_ERROR, PRT_EXIT, PRT_FATAL, PRT_MESSAGE, PRT_WARNING, QDECL, S_COLOR_RED, S_COLOR_YELLOW, va_end, va_list, va_start, and vsprintf(). Referenced by AINode_Battle_Fight(), AINode_Battle_Retreat(), AINode_Seek_ActivateEntity(), BotAI(), BotAIBlocked(), BotAISetupClient(), BotCheckConsoleMessages(), BotCheckEvents(), BotCreateWayPoint(), BotDeathmatchAI(), BotDumpNodeSwitches(), BotGetActivateGoal(), BotGetItemLongTermGoal(), BotGPSToPosition(), BotMatchMessage(), BotRecordNodeSwitch(), BotReportStatus(), BotSetupAlternativeRouteGoals(), BotSetupDeathmatchAI(), BotTeamplayReport(), BotTestAAS(), ClientName(), and ClientSkin(). 00095 {
00096 char str[2048];
00097 va_list ap;
00098
00099 va_start(ap, fmt);
00100 vsprintf(str, fmt, ap);
00101 va_end(ap);
00102
00103 switch(type) {
00104 case PRT_MESSAGE: {
00105 G_Printf("%s", str);
00106 break;
00107 }
00108 case PRT_WARNING: {
00109 G_Printf( S_COLOR_YELLOW "Warning: %s", str );
00110 break;
00111 }
00112 case PRT_ERROR: {
00113 G_Printf( S_COLOR_RED "Error: %s", str );
00114 break;
00115 }
00116 case PRT_FATAL: {
00117 G_Printf( S_COLOR_RED "Fatal: %s", str );
00118 break;
00119 }
00120 case PRT_EXIT: {
00121 G_Error( S_COLOR_RED "Exit: %s", str );
00122 break;
00123 }
00124 default: {
00125 G_Printf( "unknown print type\n" );
00126 break;
00127 }
00128 }
00129 }
|
Here is the call graph for this function:

|
||||||||||||||||||||||||||||||||
Here is the call graph for this function:

|
||||||||||||
Here is the call graph for this function:

|
|
Definition at line 1297 of file ai_main.c. References bot_settings_t, bot_state_t, BotFreeWaypoints(), bot_state_s::character, bot_state_s::checkpoints, bot_state_s::client, bot_state_s::cs, bot_state_s::cur_ps, bot_state_s::entergame_time, bot_state_s::entitynum, bot_state_s::gs, bot_state_s::inuse, memcpy(), memset(), bot_state_s::ms, bot_state_s::patrolpoints, playerState_t, bot_state_s::settings, trap_BotResetAvoidGoals(), trap_BotResetAvoidReach(), trap_BotResetGoalState(), trap_BotResetMoveState(), trap_BotResetWeaponState(), and bot_state_s::ws. Referenced by AIEnter_Intermission(), AIEnter_Observer(), and BotAILoadMap(). 01297 {
01298 int client, entitynum, inuse;
01299 int movestate, goalstate, chatstate, weaponstate;
01300 bot_settings_t settings;
01301 int character;
01302 playerState_t ps; //current player state
01303 float entergame_time;
01304
01305 //save some things that should not be reset here
01306 memcpy(&settings, &bs-> |