StratAStar3D Class Reference

A 3D path finding algorithm which avoids units to jam; used by the AI's strategy module. More...

#include <ai_common.h>

Inheritance diagram for StratAStar3D:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 StratAStar3D (AI *_ai, Vehicle *veh, bool markTemps_=true)

Protected Member Functions

virtual DistanceType getMoveCost (const MapCoordinate3D &start, const MapCoordinate3D &dest, const Vehicle *vehicle, bool &canStop, bool &hasAttacked)

Detailed Description

A 3D path finding algorithm which avoids units to jam; used by the AI's strategy module.

Definition at line 79 of file ai_common.h.


Constructor & Destructor Documentation

StratAStar3D::StratAStar3D ( AI _ai,
Vehicle veh,
bool  markTemps_ = true 
) [inline]

Definition at line 90 of file ai_common.h.


Member Function Documentation

virtual DistanceType StratAStar3D::getMoveCost ( const MapCoordinate3D start,
const MapCoordinate3D dest,
const Vehicle vehicle,
bool &  canStop,
bool &  hasAttacked 
) [inline, protected, virtual]

Reimplemented from AStar3D.

Definition at line 82 of file ai_common.h.

References beeline(), GameMap::getField(), AI::getMap(), AStar3D::getMoveCost(), Vehicle::getMovement(), MapField::vehicle, MapCoordinate::x, Vehicle::xpos, MapCoordinate::y, and Vehicle::ypos.


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