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

AStar Class Reference

Finds paths between 2 points using the A* Algorithm. More...

#include <AStar.h>

List of all members.

Public Methods

 AStar ()
 Constructor.

 ~AStar ()
 Destructor.

bool findpath (const Point &source, const Point &dest)
 Finds a path between 2 points.

Point getNextPoint ()
 Returns the next point of the found path.

bool hasMorePoints ()
 Returns true if there are more points in the found path.


Detailed Description

Finds paths between 2 points using the A* Algorithm.


Constructor & Destructor Documentation

AStar::AStar  
 

Constructor.

Authors: Jim Clase, Jonathan Hilliker, Jason Winnebeck

AStar::~AStar  
 

Destructor.


Member Function Documentation

bool AStar::findpath const Point   source,
const Point   dest
 

Finds a path between 2 points.

Parameters:
source  the source point
dest  the destination point
Returns:
true if a path was found

Point AStar::getNextPoint  
 

Returns the next point of the found path.

Returns:
the next point of the found path

bool AStar::hasMorePoints  
 

Returns true if there are more points in the found path.

Returns:
true if there are more points in the found path


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