19 #ifndef OPENXCOM_PATHFINDINGNODE_H
20 #define OPENXCOM_PATHFINDINGNODE_H
27 class PathfindingOpenSet;
66 bool inOpenSet()
const {
return (_openentry != 0); }
void reset()
Resets the node.
Definition: PathfindingNode.cpp:54
const Position & getPosition() const
Gets the node position.
Definition: PathfindingNode.cpp:46
int getTUGuess() const
Gets the approximate cost to reach the target position.
Definition: PathfindingNode.h:68
void connect(int tuCost, PathfindingNode *prevNode, int prevDir, const Position &target)
Connects to previous node along the path.
Definition: PathfindingNode.cpp:108
Definition: PathfindingOpenSet.h:29
int getPrevDir() const
Gets the previous walking direction.
Definition: PathfindingNode.cpp:95
bool operator()(const PathfindingNode *a, const PathfindingNode *b) const
Compares nodes *a and *b.
Definition: PathfindingNode.h:92
void setChecked()
Marks the node as checked.
Definition: PathfindingNode.h:58
bool isChecked() const
Is checked?
Definition: PathfindingNode.cpp:64
A class that holds pathfinding info for a certain node on the map.
Definition: PathfindingNode.h:33
bool inOpenSet() const
Is this node already in a PathfindingOpenSet?
Definition: PathfindingNode.h:66
A class that holds references to the nodes to be examined in pathfinding.
Definition: PathfindingOpenSet.h:56
Compares PathfindingNode pointers based on TU cost.
Definition: PathfindingNode.h:83
int getTUCost(bool missile) const
Gets the TU cost.
Definition: PathfindingNode.cpp:74
Easy handling of X-Y-Z coordinates.
Definition: Position.h:30
PathfindingNode(Position pos)
Creates a new PathfindingNode class.
Definition: PathfindingNode.cpp:29
~PathfindingNode()
Cleans up the PathfindingNode.
Definition: PathfindingNode.cpp:37
PathfindingNode * getPrevNode() const
Gets the previous node.
Definition: PathfindingNode.cpp:86