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