BWAPI
Classes | Public Member Functions
UpgradeManager Class Reference

#include <UpgradeManager.h>

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

List of all members.

Classes

class  Upgrade

Public Member Functions

 UpgradeManager (Arbitrator::Arbitrator< BWAPI::Unit *, double > *arbitrator)
void setBuildingPlacer (BuildingPlacer *placer)
virtual void onOffer (std::set< BWAPI::Unit * > units)
virtual void onRevoke (BWAPI::Unit *unit, double bid)
virtual void update ()
virtual std::string getName () const
void onRemoveUnit (BWAPI::Unit *unit)
bool upgrade (BWAPI::UpgradeType type, int level=-1)
int getPlannedLevel (BWAPI::UpgradeType type) const
int getStartedLevel (BWAPI::UpgradeType type) const
int getCompletedLevel (BWAPI::UpgradeType type) const

Constructor & Destructor Documentation

UpgradeManager::UpgradeManager ( Arbitrator::Arbitrator< BWAPI::Unit *, double > *  arbitrator)

Member Function Documentation

int UpgradeManager::getCompletedLevel ( BWAPI::UpgradeType  type) const
std::string UpgradeManager::getName ( ) const [virtual]
int UpgradeManager::getPlannedLevel ( BWAPI::UpgradeType  type) const

Here is the caller graph for this function:

int UpgradeManager::getStartedLevel ( BWAPI::UpgradeType  type) const
void UpgradeManager::onOffer ( std::set< BWAPI::Unit * >  units) [virtual]

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

Here is the call graph for this function:

void UpgradeManager::onRemoveUnit ( BWAPI::Unit *  unit)

Here is the caller graph for this function:

void UpgradeManager::onRevoke ( BWAPI::Unit *  unit,
double  bid 
) [virtual]

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

Here is the call graph for this function:

void UpgradeManager::update ( ) [virtual]

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

Here is the call graph for this function:

bool UpgradeManager::upgrade ( BWAPI::UpgradeType  type,
int  level = -1 
)

Here is the call graph for this function:


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