PathFinder Class Reference

Inheritance diagram for PathFinder:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PathFinder (Vehicle *veh, int maxDistance)
void getMovementFields (set< MapCoordinate3D > &reachableFields, set< MapCoordinate3D > &reachableFieldsIndirect, int height)
 searches for all fields that are within the range of maxDist and marks them.

Detailed Description

Definition at line 129 of file moveunitcommand.cpp.


Constructor & Destructor Documentation

PathFinder::PathFinder ( Vehicle veh,
int  maxDistance 
) [inline]

Definition at line 131 of file moveunitcommand.cpp.


Member Function Documentation

void PathFinder::getMovementFields ( set< MapCoordinate3D > &  reachableFields,
set< MapCoordinate3D > &  reachableFieldsIndirect,
int  height 
)

searches for all fields that are within the range of maxDist and marks them.

On each field one bit for each level of height will be set. The Destructor removes all marks.

Definition at line 141 of file moveunitcommand.cpp.

References AStar3D::findPath(), MapCoordinate3D::getNumericalHeight(), Vehicle::getPosition(), Vehicle::height, maxint, move(), MapCoordinate3D::setnum(), AStar3D::veh, and AStar3D::visited.


The documentation for this class was generated from the following file:
Generated on Mon May 21 01:47:11 2012 for Advanced Strategic Command by  doxygen 1.5.1