Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

AI Namespace Reference


Compounds

class  CityLessThreatened
 compare two cities to see which is less threatened. More...

class  IsNeutralCity
 used by the ai player to find all the neutral cities. More...

class  Player
 A computer controlled player. More...

class  SmallerDistToCity

Typedefs

typedef vector< City
* >::iterator 
CityIter
typedef vector< MilitaryUnit
* >::iterator 
UnitIter
typedef pair< MilitaryUnit *,
FLOAT > 
UnitDist
typedef vector< vector< FLOAT > > ThreatMap

Variables

const float threatMapScale = 1.0f/3.0f
const float unitThreatIncr = 1.0f/7.0f
 The value to inrement a map cell that is threatened by a unit, i.e. how threatening a unit is to a cell.


Typedef Documentation

typedef vector<City*>::iterator AI::CityIter
 

Definition at line 28 of file AI.cpp.

Referenced by AI::Player::update().

typedef vector<vector<FLOAT> > AI::ThreatMap
 

Definition at line 37 of file AI.h.

Referenced by AI::Player::threatMap().

typedef pair<MilitaryUnit*, FLOAT> AI::UnitDist
 

Definition at line 169 of file AI.cpp.

Referenced by AI::Player::sendUnitsToCity().

typedef vector<MilitaryUnit*>::iterator AI::UnitIter
 

Definition at line 29 of file AI.cpp.

Referenced by AI::Player::buildThreatMap(), AI::Player::sendUnitsToCity(), and AI::Player::update().


Variable Documentation

const float AI::threatMapScale = 1.0f/3.0f
 

Definition at line 32 of file AI.h.

const float AI::unitThreatIncr = 1.0f/7.0f
 

The value to inrement a map cell that is threatened by a unit, i.e. how threatening a unit is to a cell.

Definition at line 35 of file AI.h.


Generated on Wed Apr 23 05:52:15 2003 for Modern Warfare by doxygen1.3-rc2