BWAPI
Public Member Functions | Static Public Member Functions
Environment Class Reference

#include <Environment.h>

List of all members.

Public Member Functions

 Environment ()
virtual ~Environment (void)
int getNextTaskId ()
Player * getPlayer ()
MapSectorMapgetMapSectors ()
MapSectorSet getMapSectorsInQuadrant (Quadrant *quadrant)
QuadrantMapgetQuadrants ()
QuadrantgetQuadrant (int i, int j)
QuadrantgetQuadrant (TilePosition pos)
QuadrantgetQuadrant (MapSector *sector)
void resetQuadrants ()
void addTask (Task *task)
void removeTask (Task *task)
TaskSetgetTasks ()
void incUnitTypeDeaths (UnitType type)
int getUnitTypeDeaths (UnitType type)
int getTotalDeaths ()
bool containsAgent (Unit *unit)
void addAgent (Unit *unit)
void removeAgent (Unit *unit)
void addUnitMemory (Unit *unit)
void removeUnitMemory (Unit *unit)
UnitMemorygetUnitMemory (Unit *unit)
UnitMemorySet getEnemyMemories ()
AgentMapgetAgents ()
void initialize ()
void refresh ()
void refreshMemoryUnits ()
UnitMemorySet getMemoriesInRadius (Position pos, int radius)
TilePositionMap getValidPositions ()
void generateValidPositions ()
TilePosition getBestPosition (UnitType type, Position idealPos)
TilePosition getBestPosition (TileBox box, Position idealPos, UnitType type=UnitTypes::None)
TilePosition getBestCommandPosition ()
Position getBestOpenSpace (Position idealPos)
void reserveMinerals (int quantity)
void reserveGas (int quantity)
void reserveSupply (int quantity)
int getReservedMinerals ()
int getReservedGas ()
int getReservedSupply ()
void resetReserves ()
void incRequiredMinerals (int quantity)
void incRequiredGas (int quantity)
void incRequiredSupply (int quantity)
void decRequiredMinerals (int quantity)
void decRequiredGas (int quantity)
void decRequiredSupply (int quantity)
int getRequiredMinerals ()
int getRequiredGas ()
int getRequiredSupply ()
int getCurrentMinerals ()
int getCurrentGas ()
int getCurrentSupply ()
int getTotalSupply ()
void purgeTasks ()
void purgeAgents ()
void purgeMapSectors ()
void purgeQuadrants ()
void purgeUnitMemories ()
bool isEnemyUnit (Unit *unit)
void addTaskTarget (Unit *unit, TaskType type)
void removeTaskTargets (Unit *unit)
void removeTaskTarget (Unit *unit, TaskType type)
bool isTaskTarget (Unit *unit, TaskType type)
TaskSet getFilteredTasks (TaskType type)
TaskSet getFilteredTasks (TaskType type, int maxCreationFrame)
TaskSet getFilteredTasksByPriority (TaskType type, double priority)
AgentMap getFilteredAgents (AgentType type, bool finished=true)
AgentMap getFilteredAgents (UnitType type, bool finished=true)
AgentMap getFilteredAgents (TaskType type, bool finished=true)
AgentgetClosestAgent (AgentType type, Position pos)
AgentgetClosestAgent (UnitType type, Position pos)
AgentgetClosestAgent (TaskType type, Position pos)
AgentSet getAgentsInRadius (Position pos, int radius)
void addPlannedBuilding (BuildingSpaceInfo *pBuilding)
void removePlannedBuilding (BuildingSpaceInfo *pBuilding)
PlannedBuildingSetgetPlannedBuildings ()
void incRequiredWorkers (int count)
void decRequiredWorkers (int count)
int getRequiredWorkers ()
int calculateNeededExtraWorkers ()
void incRequiredMineralWorkers (int count)
void decRequiredMineralWorkers (int count)
int getRequiredMineralWorkers ()
void incRequiredGasWorkers (int count)
void decRequiredGasWorkers (int count)
int getRequiredGasWorkers ()
bool hasEconomy ()
bool hasAttackers ()
UnitSet getThreatenedUnits (Unit *enemyUnit)

Static Public Member Functions

static bool isUnitCombatValuable (Unit *unit)
static double getUnitCombatValue (Unit *unit)
static double getUnitAirAttackValue (UnitType type)
static double getUnitGroundAttackValue (UnitType type)
static double getUnitTypeValue (UnitType type)
static double getUnitHealthValue (Unit *unit)
static double getUnitHealthValue (UnitMemory *memory)

Constructor & Destructor Documentation

Environment::~Environment ( void  ) [virtual]

Here is the call graph for this function:


Member Function Documentation

void Environment::addAgent ( Unit *  unit)

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

void Environment::addTask ( Task task)

Here is the caller graph for this function:

void Environment::addTaskTarget ( Unit *  unit,
TaskType  type 
)

Here is the caller graph for this function:

void Environment::addUnitMemory ( Unit *  unit)

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

bool Environment::containsAgent ( Unit *  unit)
void Environment::decRequiredGas ( int  quantity)

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 Environment::decRequiredMinerals ( int  quantity)

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 Environment::decRequiredSupply ( int  quantity)

Here is the caller graph for this function:

void Environment::decRequiredWorkers ( int  count)

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:

AgentSet Environment::getAgentsInRadius ( Position  pos,
int  radius 
)

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:

Position Environment::getBestOpenSpace ( Position  idealPos)

Here is the call graph for this function:

Here is the caller graph for this function:

TilePosition Environment::getBestPosition ( UnitType  type,
Position  idealPos 
)

Here is the caller graph for this function:

TilePosition Environment::getBestPosition ( TileBox  box,
Position  idealPos,
UnitType  type = UnitTypes::None 
)

Here is the call graph for this function:

Agent * Environment::getClosestAgent ( AgentType  type,
Position  pos 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Agent * Environment::getClosestAgent ( UnitType  type,
Position  pos 
)

Here is the call graph for this function:

Agent * Environment::getClosestAgent ( TaskType  type,
Position  pos 
)

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 caller graph for this function:

AgentMap Environment::getFilteredAgents ( AgentType  type,
bool  finished = true 
)

Here is the call graph for this function:

AgentMap Environment::getFilteredAgents ( UnitType  type,
bool  finished = true 
)

Here is the call graph for this function:

AgentMap Environment::getFilteredAgents ( TaskType  type,
bool  finished = true 
)

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

TaskSet Environment::getFilteredTasks ( TaskType  type,
int  maxCreationFrame 
)

Here is the call graph for this function:

TaskSet Environment::getFilteredTasksByPriority ( TaskType  type,
double  priority 
)

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 caller graph for this function:

UnitMemorySet Environment::getMemoriesInRadius ( Position  pos,
int  radius 
)

Here is the caller graph for this function:

Here is the caller graph for this function:

Player * Environment::getPlayer ( )

Here is the caller graph for this function:

Quadrant * Environment::getQuadrant ( int  i,
int  j 
)

Here is the caller graph for this function:

Quadrant * Environment::getQuadrant ( TilePosition  pos)

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 caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

double Environment::getUnitAirAttackValue ( UnitType  type) [static]

Here is the caller graph for this function:

double Environment::getUnitCombatValue ( Unit *  unit) [static]

Here is the caller graph for this function:

double Environment::getUnitGroundAttackValue ( UnitType  type) [static]

Here is the caller graph for this function:

double Environment::getUnitHealthValue ( Unit *  unit) [static]

Here is the caller graph for this function:

double Environment::getUnitHealthValue ( UnitMemory memory) [static]
int Environment::getUnitTypeDeaths ( UnitType  type)

Here is the caller graph for this function:

double Environment::getUnitTypeValue ( UnitType  type) [static]

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:

void Environment::incRequiredGas ( int  quantity)

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 Environment::incRequiredMinerals ( int  quantity)

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 Environment::incRequiredSupply ( int  quantity)

Here is the caller graph for this function:

void Environment::incRequiredWorkers ( int  count)

Here is the caller graph for this function:

void Environment::incUnitTypeDeaths ( UnitType  type)

Here is the caller graph for this function:

Here is the call graph for this function:

bool Environment::isEnemyUnit ( Unit *  unit)

Here is the caller graph for this function:

bool Environment::isTaskTarget ( Unit *  unit,
TaskType  type 
)

Here is the caller graph for this function:

bool Environment::isUnitCombatValuable ( Unit *  unit) [static]

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

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

void Environment::removeAgent ( Unit *  unit)

Here is the call graph for this function:

Here is the caller graph for this function:

void Environment::removeTask ( Task task)

Here is the call graph for this function:

void Environment::removeTaskTarget ( Unit *  unit,
TaskType  type 
)

Here is the caller graph for this function:

void Environment::removeTaskTargets ( Unit *  unit)
void Environment::removeUnitMemory ( Unit *  unit)

Here is the call graph for this function:

void Environment::reserveGas ( int  quantity)

Here is the caller graph for this function:

void Environment::reserveMinerals ( int  quantity)

Here is the caller graph for this function:

void Environment::reserveSupply ( int  quantity)

Here is the caller graph for this function:

Here is the caller 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 Typedefs Enumerations Enumerator Defines