BWAPI
Public Member Functions
SpottedObject Class Reference

#include <SpottedObject.h>

List of all members.

Public Member Functions

 SpottedObject ()
 SpottedObject (Unit *mUnit)
 SpottedObject (Position pos)
bool isActive ()
void setInactive ()
int getUnitID ()
UnitType getType ()
Position getPosition ()
TilePosition getTilePosition ()
bool isAt (TilePosition tilePos)
double getDistance (Position pos)
double getDistance (TilePosition tilePos)

Detailed Description

The SpottedObject class is a help class for the ExplorationManager. It contains all details about a spotted enemy unit or neutral resource.

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


Constructor & Destructor Documentation

Default constructor. Should not be used.

Creates an object from a unit reference.

Here is the call graph for this function:

Creates a spotted object from an interesting position.


Member Function Documentation

Returns the distance between the spotted object and a position

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the distance between the spotted object and a tileposition

Here is the call graph for this function:

Returns the position of the spotted unit.

Here is the caller graph for this function:

Returns the tileposition of the spotted unit.

Here is the caller graph for this function:

Returns the type of the spotted unit.

Here is the caller graph for this function:

Returns the unique id of the spotted unit.

Returns true if this SpottedObject is active, false if not.

Here is the caller graph for this function:

bool SpottedObject::isAt ( TilePosition  tilePos)

Returns true if the SpottedObject is at this TilePosition.

Here is the call graph for this function:

Sets this SpottedObject as inactive, i.e. it is probably destroyed.


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