#include <AStarTile.h>
Public Methods | |
| AStarTileKey (AStarTile *theTile) | |
| Constructor. | |
| ~AStarTileKey () | |
| Destructor. | |
| bool | operator< (const AStarTileKey rhs) const |
| Returns true if this key's tile's fitness is less than the other key's tile's fitness. | |
| bool | operator== (const AStarTileKey rhs) const |
| Return true if the key's tiles are at the same coordinates. | |
| AStarTile * | getTile () const |
| Returns the tile pointer. | |
Implements the < operator so that sorting is done by fitness. Implements the == operator so that finding is done by coordinates.
|
|
Constructor.
|
|
|
Destructor.
|
|
|
Returns the tile pointer.
|
|
|
Returns true if this key's tile's fitness is less than the other key's tile's fitness. If it is the same fitness, then compare by the x and y values so that set will allow keys of the same fitness to exist in the set. |
|
|
Return true if the key's tiles are at the same coordinates.
|
1.2.18