#include <map.h>
Collaboration diagram for hoa_map::private_map::PathNode:

Public Member Functions | |
| bool | operator!= (const PathNode &that) const |
| Overloaded comparison operator checks that tile.row or tile.col are not equal. | |
| bool | operator< (const PathNode &that) const |
| Overloaded comparison operator only used for path finding. It compares the two f_scores. | |
| bool | operator== (const PathNode &that) const |
| Overloaded comparison operator checks that tile.row and tile.col are equal. | |
| PathNode (int16 r, int16 c) | |
| PathNode () | |
Public Attributes | |
| int16 | parent_col |
| int16 | parent_row |
| int16 | col |
| int16 | row |
| The coordinates for this node These coordinates correspond to the MapMode::_walkable 2D vector, where each element is a 16x16 pixel space on the map. | |
Path Scoring Members | |
| int16 | f_score |
| The total score for this node (f = g + h). | |
| int16 | g_score |
| The score for this node relative to the source. | |
| int16 | h_score |
| The Manhattan distance from this node to the destination. | |
****************************************************************************
This class is used in the MapMode::_FindPath function to find an optimal path from a given source to a destination.
Definition at line 158 of file map.h.
| bool hoa_map::private_map::PathNode::operator!= | ( | const PathNode & | that | ) | const [inline] |
| bool hoa_map::private_map::PathNode::operator< | ( | const PathNode & | that | ) | const [inline] |
| bool hoa_map::private_map::PathNode::operator== | ( | const PathNode & | that | ) | const [inline] |
Definition at line 165 of file map.h.
Referenced by operator!=(), operator==(), and hoa_map::private_map::ActionPathMove::SetDestination().
The total score for this node (f = g + h).
Definition at line 171 of file map.h.
Referenced by operator<().
The coordinates for this node These coordinates correspond to the MapMode::_walkable 2D vector, where each element is a 16x16 pixel space on the map.
Definition at line 165 of file map.h.
Referenced by operator!=(), operator==(), and hoa_map::private_map::ActionPathMove::SetDestination().
1.5.1