BWAPI
Classes | Public Member Functions | Static Public Member Functions
ArmyManager Class Reference

#include <ArmyManager.h>

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

List of all members.

Classes

class  ArmyData

Public Member Functions

 ArmyManager (Arbitrator::Arbitrator< BWAPI::Unit *, double > *arbitrator)
 ~ArmyManager ()
void setDefenseManager (DefenseManager *)
void setInformationManager (InformationManager *)
void setBaseManager (BaseManager *)
void setMoodManager (MoodManager *)
void setLastExpandFrame (int)
virtual void onOffer (std::set< BWAPI::Unit * > unitGroup)
virtual void onRevoke (BWAPI::Unit *p, double bid)
void onRemoveUnit (BWAPI::Unit *unit)
virtual void update ()
virtual std::string getName () const
virtual std::string getShortName () const
double enemyDPS ()
double myDPS ()
double myDPS (std::map< BWAPI::Unit *, ArmyData >)
int enemyHP ()
int myHP (std::map< BWAPI::Unit *, ArmyData >)
bool isInitialized ()
void initialize ()
int getStartAttack ()
bool getFirstAttackDone ()
void setFirstAttackDone (bool)

Static Public Member Functions

static std::set< BWAPI::Unit * > whoIsAttacking (BWAPI::Unit *)
static bool containsBuilding (std::set< BWAPI::Unit * >)
static BWAPI::UnitnearestUnit (BWAPI::Unit *, std::set< BWAPI::Unit * >)

Constructor & Destructor Documentation


Member Function Documentation

bool ArmyManager::containsBuilding ( std::set< BWAPI::Unit * >  list) [static]

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

std::string ArmyManager::getName ( ) const [virtual]
std::string ArmyManager::getShortName ( ) const [virtual]

Here is the call graph for this function:

double ArmyManager::myDPS ( )

Here is the call graph for this function:

Here is the caller graph for this function:

double ArmyManager::myDPS ( std::map< BWAPI::Unit *, ArmyData group)

Here is the call graph for this function:

int ArmyManager::myHP ( std::map< BWAPI::Unit *, ArmyData group)

Here is the call graph for this function:

Here is the caller graph for this function:

BWAPI::Unit * ArmyManager::nearestUnit ( BWAPI::Unit unit,
std::set< BWAPI::Unit * >  list 
) [static]

Here is the call graph for this function:

Here is the caller graph for this function:

void ArmyManager::onOffer ( std::set< BWAPI::Unit * >  unitGroup) [virtual]

Implements Arbitrator::Controller< BWAPI::Unit *, double >.

Here is the call graph for this function:

Here is the caller graph for this function:

void ArmyManager::onRevoke ( BWAPI::Unit p,
double  bid 
) [virtual]

Implements Arbitrator::Controller< BWAPI::Unit *, double >.

Here is the call graph for this function:

void ArmyManager::setBaseManager ( BaseManager baseManager)
void ArmyManager::setDefenseManager ( DefenseManager defenseManager)
void ArmyManager::setFirstAttackDone ( bool  firstAttackDone)
void ArmyManager::setLastExpandFrame ( int  lastExpandFrame)
void ArmyManager::setMoodManager ( MoodManager moodManager)
void ArmyManager::update ( ) [virtual]

Implements Arbitrator::Controller< BWAPI::Unit *, double >.

Here is the call graph for this function:

std::set< BWAPI::Unit * > ArmyManager::whoIsAttacking ( BWAPI::Unit unit) [static]

Here is the call graph for this function:

Here is the caller graph for this function:


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