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

Function DrawPathfindingDebug

TombEngine/Game/control/box.cpp:377–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377void DrawPathfindingDebug(int laraBoxIndex)
378{
379 auto creatures = GetActiveCreatures();
380
381 if (PathfindingDisplayIndex < 0 || creatures.empty())
382 {
383 // Show Lara's nearby boxes.
384 DrawLaraPathfinding(laraBoxIndex);
385 }
386 else
387 {
388 // Show selected creature's pathfinding.
389 int creatureIndex = PathfindingDisplayIndex;
390 if (creatureIndex >= (int)creatures.size())
391 creatureIndex = 0;
392
393 DrawItemPathfinding(creatures[creatureIndex]);
394 }
395}
396
397bool MoveCreature3DPos(Pose* fromPose, Pose* toPose, int velocity, short angleDif, int angleAdd)
398{

Callers 1

HandlePlayerDebugFunction · 0.85

Calls 5

GetActiveCreaturesFunction · 0.85
DrawLaraPathfindingFunction · 0.85
DrawItemPathfindingFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected