MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getNode

Method getNode

src/Battlescape/Pathfinding.cpp:69–72  ·  view source on GitHub ↗

* Gets the Node on a given position on the map. * @param pos Position. * @return Pointer to node. */

Source from the content-addressed store, hash-verified

67 * @return Pointer to node.
68 */
69PathfindingNode *Pathfinding::getNode(const Position& pos)
70{
71 return &_nodes[_save->getTileIndex(pos)];
72}
73
74/**
75 * Calculates the shortest path.

Callers

nothing calls this directly

Calls 1

getTileIndexMethod · 0.80

Tested by

no test coverage detected