MCPcopy Create free account
hub / github.com/assaultcube/AC / loopv

Function loopv

source/src/bot/botmanager.cpp:73–82  ·  view source on GitHub ↗

Let all bots 'think'

Source from the content-addressed store, hash-verified

71 }
72 // Let all bots 'think'
73 loopv(bots)
74 {
75 if (!bots[i]) continue;
76 if (bots[i]->pBot)
77 {
78 bots[i]->pBot->CheckWeaponSwitch(); // 2011jan17:ft: fix non-shooting bots
79 bots[i]->pBot->Think();
80 }
81 else condebug("Error: pBot == NULL in bot ent\n");
82 }
83}
84
85void CBotManager::LoadBotNamesFile()

Callers 2

GetBotTeamMethod · 0.70
LetBotsUpdateStatsMethod · 0.70

Calls 15

condebugFunction · 0.85
renderclientpFunction · 0.85
team_stringFunction · 0.85
freebotentFunction · 0.85
CheckWeaponSwitchMethod · 0.80
AddNodeMethod · 0.80
HearSoundMethod · 0.80
GetNodeIndexesMethod · 0.80
GetWPFromNodeMethod · 0.80
EnableBotViewMethod · 0.80

Tested by

no test coverage detected