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

Function CyclePathfindingDisplay

TombEngine/Game/control/box.cpp:360–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360void CyclePathfindingDisplay()
361{
362 auto creatures = GetActiveCreatures();
363
364 if (creatures.empty())
365 {
366 // No creatures, stay on Lara view.
367 PathfindingDisplayIndex = -1;
368 return;
369 }
370
371 // Cycle: -1 (Lara) -> 0 -> 1 -> ... -> N-1 -> -1 (Lara).
372 PathfindingDisplayIndex++;
373 if (PathfindingDisplayIndex >= (int)creatures.size())
374 PathfindingDisplayIndex = -1;
375}
376
377void DrawPathfindingDebug(int laraBoxIndex)
378{

Callers 1

HandleHotkeyActionsFunction · 0.85

Calls 3

GetActiveCreaturesFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected