MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetActiveCreatures

Function GetActiveCreatures

TombEngine/Game/control/box.cpp:346–358  ·  view source on GitHub ↗

Collect all active creature item numbers.

Source from the content-addressed store, hash-verified

344
345// Collect all active creature item numbers.
346std::vector<int> GetActiveCreatures()
347{
348 auto creatures = std::vector<int>{};
349
350 for (int i = 0; i < g_Level.Items.size(); i++)
351 {
352 auto& item = g_Level.Items[i];
353 if (item.IsCreature())
354 creatures.push_back(i);
355 }
356
357 return creatures;
358}
359
360void CyclePathfindingDisplay()
361{

Callers 3

DrawDebugInfoMethod · 0.85
CyclePathfindingDisplayFunction · 0.85
DrawPathfindingDebugFunction · 0.85

Calls 3

IsCreatureMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected