
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. | |
Definition at line 129 of file moveunitcommand.cpp.
| PathFinder::PathFinder | ( | Vehicle * | veh, | |
| int | maxDistance | |||
| ) | [inline] |
Definition at line 131 of file moveunitcommand.cpp.
| 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.
1.5.1