Advanced Strategic Command
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SearchReconquerBuilding Class Reference
Inheritance diagram for SearchReconquerBuilding:
Inheritance graph
[legend]

Public Member Functions

void testfield (const MapCoordinate &mc)
 
bool returnresult ()
 
void unitfound (Vehicle *eht)
 
bool canUnitCapture (Vehicle *veh)
 
 SearchReconquerBuilding (AI &_ai, Building *bld)
 
- Public Member Functions inherited from SearchFields
 SearchFields (GameMap *_gamemap)
 
void initsearch (const MapCoordinate &startPosition, int _firstDistance, int _lastDistance)
 
virtual void startsearch (void)
 
virtual ~SearchFields ()
 

Protected Member Functions

float getThreatValueOfUnit (Vehicle *veh)
 

Protected Attributes

AIai
 
BuildingbuildingToCapture
 
int mode
 
vector< Vehicle * > enemyUnits
 
- Protected Attributes inherited from SearchFields
GameMapgamemap
 
MapCoordinate startPos
 
bool cancelSearch
 
int firstDistance
 
int lastDistance
 
int dist
 

Detailed Description

Definition at line 68 of file buildingcapture.cpp.

Constructor & Destructor Documentation

SearchReconquerBuilding::SearchReconquerBuilding ( AI _ai,
Building bld 
)
inline

Definition at line 80 of file buildingcapture.cpp.

Member Function Documentation

bool SearchReconquerBuilding::canUnitCapture ( Vehicle veh)
float SearchReconquerBuilding::getThreatValueOfUnit ( Vehicle veh)
protected
bool SearchReconquerBuilding::returnresult ( )

Definition at line 83 of file buildingcapture.cpp.

References enemyUnits.

void SearchReconquerBuilding::testfield ( const MapCoordinate mc)
virtual
void SearchReconquerBuilding::unitfound ( Vehicle eht)

Member Data Documentation

AI& SearchReconquerBuilding::ai
protected

Definition at line 70 of file buildingcapture.cpp.

Referenced by testfield(), and unitfound().

Building* SearchReconquerBuilding::buildingToCapture
protected

Definition at line 71 of file buildingcapture.cpp.

Referenced by canUnitCapture(), and unitfound().

vector<Vehicle*> SearchReconquerBuilding::enemyUnits
protected

Definition at line 73 of file buildingcapture.cpp.

Referenced by returnresult(), and unitfound().

int SearchReconquerBuilding::mode
protected

Definition at line 72 of file buildingcapture.cpp.

Referenced by testfield().


The documentation for this class was generated from the following file: