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

#include <ExplorationManager.h>

List of all members.

Public Member Functions

 ~ExplorationManager ()
void setInactive ()
bool isActive ()
void computeActions ()
TilePosition getNextToExplore (Squad *squad)
TilePosition searchExpansionSite ()
TilePosition getExpansionSite ()
void setExpansionSite (TilePosition pos)
void printInfo ()
void addSpottedUnit (Unit *unit)
void unitDestroyed (Unit *unit)
vector< SpottedObject * > getSpottedBuildings ()
TilePosition getClosestSpottedBuilding (TilePosition start)
int spottedBuildingsWithinRange (TilePosition pos, int range)
bool buildingsSpotted ()
void showIntellData ()
void setExplored (TilePosition goal)
TilePosition scanForVulnerableBase ()
bool isDetectorCovering (TilePosition pos)
bool isDetectorCovering (Position pos)

Static Public Member Functions

static ExplorationManagergetInstance ()
static bool canReach (TilePosition a, TilePosition b)
static bool canReach (BaseAgent *agent, TilePosition b)
static bool enemyIsProtoss ()
static bool enemyIsZerg ()
static bool enemyIsTerran ()
static bool enemyIsUnknown ()

Detailed Description

The ExplorationManager handles all tasks involving exploration of the game world. It issue orders to a number of units that is used as explorers, keep track of areas recently explored, and keep track of spotted resources or enemy buildings.

The ExplorationManager is implemented as a singleton class. Each class that needs to access ExplorationManager can request an instance, and all classes shares the same ExplorationManager instance.

Author: Johan Hagelback (johan.hagelback@gmail.com)


Constructor & Destructor Documentation

Destructor


Member Function Documentation

Notifies about an enemy unit that has been spotted.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns true if any enemy buildings have been spotted.

Returns true if a ground unit can reach position b from position a. Uses BWTA.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ExplorationManager::canReach ( BaseAgent agent,
TilePosition  b 
) [static]

Returns true if an agent can reach position b.

Here is the call graph for this function:

Called each update to issue orders.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns true if an enemy is Protoss.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns true if an enemy is Terran.

Here is the call graph for this function:

Here is the caller graph for this function:

All enemy races are currently unknown.

Here is the call graph for this function:

Returns true if an enemy is Zerg.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the closest enemy spotted building from a start position, or TilePosition(-1,-1) if none was found.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the next position to expand the base to.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the instance of the class.

Here is the caller graph for this function:

Returns the next position to explore for this squad.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the list of spotted enemy buildings.

Returns true if the ExplorationManager is active, false if not.

Checks if an enemy detector is covering the specified position.

Here is the caller graph for this function:

Checks if an enemy detector is covering the specified position.

Here is the call graph for this function:

Shows all spotted objects as squares on the SC map. Use for debug purpose.

Here is the call graph for this function:

Here is the caller graph for this function:

Scans for vulnerable enemy bases, i.e. bases without protection from detectors.

Here is the call graph for this function:

Here is the caller graph for this function:

Searches for the next position to expand the base to.

Here is the call graph for this function:

Sets the next position to expand the base to.

Here is the call graph for this function:

Sets that a region is explored. The position must be the TilePosition for the center of the region.

Here is the call graph for this function:

Here is the caller graph for this function:

Sets ExplorationManager to inactive. Is used when perfect information is activated.

Shows some data about the enemy on screen.

Here is the call graph for this function:

Calculates the number of spotted enemy buildings within the specified range (in tiles).

Here is the call graph for this function:

Notifies that an enemy unit has been destroyed. If the destroyed unit was among the spotted units, it is removed from the list.

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