BWAPI
Public Member Functions | Public Attributes
AiurModule Class Reference

#include <AiurModule.h>

Inheritance diagram for AiurModule:
Inheritance graph
[legend]
Collaboration diagram for AiurModule:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void onStart ()
virtual void onEnd (bool isWinner)
virtual void onFrame ()
virtual void onUnitDiscover (BWAPI::Unit *unit)
virtual void onUnitEvade (BWAPI::Unit *unit)
virtual void onUnitMorph (BWAPI::Unit *unit)
virtual void onUnitRenegade (BWAPI::Unit *unit)
virtual void onUnitDestroy (BWAPI::Unit *unit)
virtual void onSendText (std::string text)
 ~AiurModule ()
void showStats ()
void showPlayers ()
void showForces ()

Public Attributes

bool analyzed
std::map< BWAPI::Unit
*, BWAPI::UnitType
buildings
Arbitrator::Arbitrator
< BWAPI::Unit *, double > 
arbitrator
WorkerManagerworkerManager
SupplyManagersupplyManager
BuildManagerbuildManager
TechManagertechManager
UpgradeManagerupgradeManager
BaseManagerbaseManager
ScoutManagerscoutManager
SpendManagerspendManager
BuildOrderManagerbuildOrderManager
DefenseManagerdefenseManager
UnderAttackManagerunderAttackManager
InformationManagerinformationManager
BorderManagerborderManager
UnitGroupManagerunitGroupManager
SpyManagerspyManager
ArmyManagerarmyManager
MoodManagermoodManager
OpeningManageropeningManager
PhotonManagerphotonManager
DragoonManagerdragoonManager
EnhancedUIenhancedUI
RandomrandomExpand
HashMap hashMap
int timeToExpand
bool showManagerAssignments
bool debugMode
bool destinationMineralSpotted
bool cleaningPath
double diff
double top
int sup55
CMesurePrecision compteur

Constructor & Destructor Documentation

Here is the call graph for this function:


Member Function Documentation

void AiurModule::onEnd ( bool  isWinner) [virtual]

BWAPI calls this at the end of the match. isWinner will be true if the AIModule won the game. If the game is a replay, isWinner will always be false.

Reimplemented from BWAPI::AIModule.

Here is the call graph for this function:

void AiurModule::onFrame ( ) [virtual]

BWAPI calls this on every logical frame in the game.

Reimplemented from BWAPI::AIModule.

Here is the call graph for this function:

void AiurModule::onSendText ( std::string  text) [virtual]

If Flag::UserInput is enabled, BWAPI will call this each time a user enters a message into the chat.

Reimplemented from BWAPI::AIModule.

Here is the call graph for this function:

void AiurModule::onStart ( ) [virtual]

BWAPI calls this at the start of a match. Typically an AI will execute set up code in this method (initialize data structures, load build orders, etc).

Reimplemented from BWAPI::AIModule.

Here is the call graph for this function:

void AiurModule::onUnitDestroy ( BWAPI::Unit unit) [virtual]

BWAPI calls this when a unit dies or otherwise removed from the game (i.e. a mined out mineral patch). When a zerg drone becomes an extractor, the Vespene geyser changes to the Zerg Extractor type and the drone is removed. If Complete Map Information is enabled, this will also be called for units that are hidden by the fog of war. If a unit that was visible gets destroyed, onUnitHide will be called right before onUnitDestroy is called.

Reimplemented from BWAPI::AIModule.

Here is the call graph for this function:

void AiurModule::onUnitDiscover ( BWAPI::Unit unit) [virtual]

BWAPI calls this when a unit becomes accessible.

Reimplemented from BWAPI::AIModule.

Here is the call graph for this function:

void AiurModule::onUnitEvade ( BWAPI::Unit unit) [virtual]

BWAPI calls this when a unit becomes inaccessible.

Reimplemented from BWAPI::AIModule.

Here is the call graph for this function:

void AiurModule::onUnitMorph ( BWAPI::Unit unit) [virtual]

BWAPI calls this when a unit changes type, such as from a Zerg Drone to a Zerg Hatchery, or from a Terran Siege Tank Tank Mode to Terran Siege Tank Siege Mode. This is not called when the type changes to or from UnitTypes::Unknown (which happens when a unit becomes visible or invisible).

Reimplemented from BWAPI::AIModule.

Here is the call graph for this function:

void AiurModule::onUnitRenegade ( BWAPI::Unit unit) [virtual]

BWAPI calls this when an accessible unit changes ownership.

Reimplemented from BWAPI::AIModule.

Here is the call graph for this function:


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines