* Gets the Node on a given position on the map. * @param pos Position. * @return Pointer to node. */
| 67 | * @return Pointer to node. |
| 68 | */ |
| 69 | PathfindingNode *Pathfinding::getNode(const Position& pos) |
| 70 | { |
| 71 | return &_nodes[_save->getTileIndex(pos)]; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Calculates the shortest path. |
nothing calls this directly
no test coverage detected