BWAPI
Public Types | Public Member Functions | Public Attributes
WorkerManager Class Reference

#include <WorkerManager.h>

List of all members.

Public Types

enum  State {
  Gathering_Mineral, Gathering_Gas, Building, Defending,
  Attacking, Scouting
}

Public Member Functions

 WorkerManager ()
void addUnit (BWAPI::Unit *unit)
void onUnitDestroy (BWAPI::Unit *unit)
void onMineralDestroy (BWAPI::Unit *mineralField)
void onFrame ()
bool needWorkers ()
BWAPI::UnitgetWorkerForTask (BWAPI::Position toPosition)
int getBuildingWorkers ()
void workerBuildingRefinery ()
bool isUnderConstruction (BWAPI::UnitType type)
void buildRequest (BWAPI::TilePosition locationToBuild, BWAPI::UnitType buildType)
bool workersDefending ()
bool workersDefending (BWAPI::Unit *target)
unsigned int getWorkersMining ()
void defenseBase (BWAPI::Unit *unit)
void rebalanceGathering ()
void reassignRevomedMinerals ()

Public Attributes

UnitSet _workerUnits
WorkerToTargetMap _workersTarget
ResourceToWorkerMap _mineralsExploitation
ResourceToWorkerMap _gasExploitation
std::map< BWAPI::Unit
*, WorkerManager::State
_workerState
WorkerToBuildOrderMap _workerBuildOrder
WorkerToBaseMap _workersScout

Member Enumeration Documentation

Enumerator:
Gathering_Mineral 
Gathering_Gas 
Building 
Defending 
Attacking 
Scouting 

Constructor & Destructor Documentation

Here is the call graph for this function:


Member Function Documentation

Here is the caller graph for this function:

void WorkerManager::buildRequest ( BWAPI::TilePosition  locationToBuild,
BWAPI::UnitType  buildType 
)

Here is the call 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:

Here is the caller graph for this function:

Here is the call 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:

void WorkerManager::onMineralDestroy ( BWAPI::Unit mineralField)

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:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

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 Typedefs Enumerations Enumerator Defines