BWAPI
Public Member Functions | Protected Member Functions | Protected Attributes
MapSector Class Reference

#include <MapSector.h>

Collaboration diagram for MapSector:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MapSector (TilePosition position, Environment *env)
 MapSector (int x, int y, Environment *env)
virtual ~MapSector ()
void initialize ()
void refresh ()
EnvironmentgetEnvironment ()
void calculateResourceValue ()
double getResourceValue ()
void calculateEnemyValue ()
double getEnemyValue ()
void incPossibleEnemyValue ()
void resetPossibleEnemyValue ()
int getBuildingCount ()
void incDeathCount ()
int getDeathCount ()
void addUnitMemory (UnitMemory *memory)
void removeUnitMemory (UnitMemory *memory)
UnitMemorySetgetEnemies ()
void addAgent (Agent *agent)
void removeAgent (Agent *agent)
UnitMemorySetgetMinerals ()
AgentSetgetAgents ()
double getAirValuePercentage ()
double getUndetectedValuePercentage ()
int getLastVisible ()
int getTimeNotVisible ()
double getWalkablePercentage ()
double getVisibilityPercentage ()
TilePositionMapgetPositions ()
TilePositionMapgetWalkablePositions ()
TilePositionMapgetNotVisibleWalkablePositions ()
TilePosition getCenterPosition ()
TilePosition getPosition ()
bool isWalkableFromStart ()
double getDistanceFromStart ()
double getCornerDistance ()
double getDistance (Position pos)
double getDistance (TilePosition pos)
void markExplored ()
void setExploreSectorTask (ExploreSectorTask *task)
ExploreSectorTaskgetExploreSectorTask ()
void incAssaultSectorTaskCount ()
void decAssaultSectorTaskCount ()
int getAssaultSectorTaskCount ()
bool isInSector (Unit *unit)
bool isInSector (Position pos)
bool isInSector (TilePosition pos)

Protected Member Functions

void refreshResources ()
void refreshEnemies ()
void refreshBuildingCount ()

Protected Attributes

TilePosition _position
TilePosition _centerPosition
int _posX
int _posY
int _sectorWidth
int _sectorHeight
int _lastVisible
TilePositionMap _positions
TilePositionMap _walkablePositions
TilePositionMap _notVisibleWalkablePositions
UnitMemorySet _unitMemories
UnitMemorySet _minerals
UnitMemorySet _geysers
UnitMemorySet _enemies
AgentSet _agents
bool hasUndetecteds
double _resourceValue
double _enemyValue
double _possibleEnemyValue
double _airValuePercentage
double _undetectedValuePercentage
double _walkablePercentage
double _visibilityPercentage
int _buildingCount
int _deathCount
ExploreSectorTask_exploreSectorTask
int _assaultSectorTaskCount
Environment_env

Constructor & Destructor Documentation

MapSector::MapSector ( TilePosition  position,
Environment env 
)
MapSector::MapSector ( int  x,
int  y,
Environment env 
)
MapSector::~MapSector ( ) [virtual]

Member Function Documentation

void MapSector::addAgent ( Agent agent)

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

Here is the caller graph for this function:

Here is the caller graph for this function:

TilePosition MapSector::getCenterPosition ( )

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 MapSector::getDistance ( Position  pos)

Here is the caller graph for this function:

double MapSector::getDistance ( TilePosition  pos)

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:

TilePosition MapSector::getPosition ( )

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

Here is the caller graph for this function:

bool MapSector::isInSector ( Unit *  unit)

Here is the caller graph for this function:

bool MapSector::isInSector ( Position  pos)
bool MapSector::isInSector ( TilePosition  pos)

Here is the call graph for this function:

Here is the caller graph for this function:

void MapSector::refreshBuildingCount ( ) [protected]

Here is the call graph for this function:

Here is the caller graph for this function:

void MapSector::refreshEnemies ( ) [protected]

Here is the call graph for this function:

Here is the caller graph for this function:

void MapSector::refreshResources ( ) [protected]

Here is the caller graph for this function:

void MapSector::removeAgent ( Agent agent)

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:


Member Data Documentation

double MapSector::_airValuePercentage [protected]
int MapSector::_buildingCount [protected]
TilePosition MapSector::_centerPosition [protected]
int MapSector::_deathCount [protected]
double MapSector::_enemyValue [protected]
int MapSector::_lastVisible [protected]
TilePosition MapSector::_position [protected]
double MapSector::_possibleEnemyValue [protected]
int MapSector::_posX [protected]
int MapSector::_posY [protected]
double MapSector::_resourceValue [protected]
int MapSector::_sectorHeight [protected]
int MapSector::_sectorWidth [protected]
double MapSector::_walkablePercentage [protected]
bool MapSector::hasUndetecteds [protected]

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