Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

AStarTileKey Class Reference

Used to store AStarTile pointers in a collection. More...

#include <AStarTile.h>

List of all members.

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.

AStarTilegetTile () const
 Returns the tile pointer.


Detailed Description

Used to store AStarTile pointers in a collection.

Implements the < operator so that sorting is done by fitness. Implements the == operator so that finding is done by coordinates.


Constructor & Destructor Documentation

AStarTileKey::AStarTileKey AStarTile   theTile [inline]
 

Constructor.

Parameters:
theTile  pointer to the AStarTile to hold

AStarTileKey::~AStarTileKey   [inline]
 

Destructor.


Member Function Documentation

AStarTile* AStarTileKey::getTile   const [inline]
 

Returns the tile pointer.

Returns:
the tile pointer

bool AStarTileKey::operator< const AStarTileKey    rhs const [inline]
 

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.

bool AStarTileKey::operator== const AStarTileKey    rhs const [inline]
 

Return true if the key's tiles are at the same coordinates.


The documentation for this class was generated from the following file:
Generated on Tue Mar 4 02:29:26 2003 for SuperIsoBomb by doxygen1.2.18