StratAStar Class Reference

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

#include <ai_common.h>

Inheritance diagram for StratAStar:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 StratAStar (AI *_ai, Vehicle *veh)

Protected Member Functions

virtual int getMoveCost (int x1, int y1, int x2, int y2, const Vehicle *vehicle)
 returns the movement cost for the unit to travel from x1/y1 to x2/y2

Detailed Description

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

Definition at line 64 of file ai_common.h.


Constructor & Destructor Documentation

StratAStar::StratAStar ( AI _ai,
Vehicle veh 
) [inline]

Definition at line 75 of file ai_common.h.


Member Function Documentation

virtual int StratAStar::getMoveCost ( int  x1,
int  y1,
int  x2,
int  y2,
const Vehicle vehicle 
) [inline, protected, virtual]

returns the movement cost for the unit to travel from x1/y1 to x2/y2

Reimplemented from AStar.

Definition at line 67 of file ai_common.h.

References beeline(), GameMap::getField(), AI::getMap(), AStar::getMoveCost(), Vehicle::getMovement(), MapField::vehicle, Vehicle::xpos, 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