MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getPathToNode

Method getPathToNode

game/state/tilemap/pathfinding.cpp:66–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 std::list<int> getPathToNode()
67 {
68 std::list<int> path;
69 path.push_back(block);
70 LosNode *t = parentNode;
71 while (t)
72 {
73 path.push_front(t->block);
74 t = t->parentNode;
75 }
76
77 return path;
78 }
79
80 float costToGetHere;
81 LosNode *parentNode;

Callers 2

findShortestPathMethod · 0.45
findLosBlockPathMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected