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

Method BeginMap

source/src/bot/botmanager.cpp:320–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320void CBotManager::BeginMap(const char *szMapName)
321{
322 EndMap(); // End previous map
323
324 WaypointClass.Init();
325 WaypointClass.SetMapName(szMapName);
326 if (!WaypointClass.LoadWaypoints())
327 WaypointClass.StartFlood();
328 //WaypointClass.LoadWPExpFile(); // UNDONE
329
330 CalculateMaxAStarCount();
331 m_sUsingAStarBotsCount = 0;
332 PickNextTrigger();
333}
334
335int CBotManager::GetBotIndex(botent *m)
336{

Callers 1

startmapFunction · 0.80

Calls 4

SetMapNameMethod · 0.80
LoadWaypointsMethod · 0.80
StartFloodMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected