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

HiddenAStar Class Reference

A path finding algorithm which tries to keep the units hidden from view. More...

#include <ai_common.h>

Inheritance diagram for HiddenAStar:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 HiddenAStar (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 tries to keep the units hidden from view.

Definition at line 96 of file ai_common.h.


Constructor & Destructor Documentation

HiddenAStar::HiddenAStar AI _ai,
Vehicle veh
[inline]
 

Definition at line 118 of file ai_common.h.


Member Function Documentation

virtual int HiddenAStar::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 99 of file ai_common.h.

References actmap, Player::diplomacy, getfield(), AStar::getMoveCost(), AI::getPlayerNum(), DiplomaticStateVector::isHostile(), GameMap::player, and visible_now.


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