Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

BaseVehicleMovement::PathFinder Class Reference

#include <unitctrl.h>

Inheritance diagram for BaseVehicleMovement::PathFinder:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

Constructor & Destructor Documentation

BaseVehicleMovement::PathFinder::PathFinder GameMap actmap,
Vehicle veh,
int  maxDistance
[inline]
 

Definition at line 144 of file unitctrl.h.


Member Function Documentation

void BaseVehicleMovement::PathFinder::getMovementFields IntFieldList reachableFields,
IntFieldList 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 53 of file unitctrl.cpp.

References AStar3D::actmap, FieldList< T >::addField(), AStar3D::findPath(), GameMap::getField(), Vehicle::getPosition(), Vehicle::height, maxint, tfield::unitHere(), AStar3D::veh, and AStar3D::visited.


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:16:22 2008 for Advanced Strategic Command by  doxygen 1.4.2