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

#include <SquadAgent.h>

Collaboration diagram for SquadAgent:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Order { Idle, GetPosition, Fight, MergeSquads }
enum  Formation { Normal, Cohesion }

Public Member Functions

 SquadAgent ()
 ~SquadAgent ()
std::string getState ()
void addUnit (BWAPI::Unit *unit)
void addUnits (UnitSet units)
void onFrame ()
void orderGetPosition (BWAPI::Position positionTarget)
void checkFormation ()
void checkSpread ()
bool needWait ()
void inCombat ()
void onUnitDestroy (BWAPI::Unit *unit)
int getAgents ()
void inMerge ()
void inMerge (SquadAgent *squadToMerge, BWAPI::Position toMerge=BWAPI::Positions::None)
bool hasUnitOfType (const BWAPI::UnitType &type)
void insertEnemyThreat (BWAPI::Unit *unit)
void removeEnemyThreat (BWAPI::Unit *unit)
CombatAgentgetClosestUnitTo (BWAPI::Position toPosition, BWAPI::UnitType type=BWAPI::UnitTypes::None, bool ignoreFlyers=false)
bool isSquadBio ()

Public Attributes

CombatUnitSet _squadUnits
UnitToCombatAgentMap _unitToCombatAgentMap
UnitSet _enemies
UnitToTypeMap _enemiesType
BWAPI::Position _center
double _spread
Order _state
BWAPI::Position _positionTarget
SquadAgent_squadToMerge
bool _waitingNewUnits
BWAPI::Position _positionToMerge
double _enemyAirDPS
double _enemyGroundDPS
double _enemyAirHP
double _enemyGroundHP
double _squadAirDPS
double _squadGroundDPS
double _squadAirHP
double _squadGroundHP

Member Enumeration Documentation

Enumerator:
Normal 
Cohesion 
Enumerator:
Idle 
GetPosition 
Fight 
MergeSquads 

Constructor & Destructor Documentation


Member Function Documentation

void SquadAgent::addUnit ( BWAPI::Unit unit)

Here is the call graph for this function:

Here is the caller graph for this function:

void SquadAgent::addUnits ( UnitSet  units)

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:

CombatAgent * SquadAgent::getClosestUnitTo ( BWAPI::Position  toPosition,
BWAPI::UnitType  type = BWAPI::UnitTypes::None,
bool  ignoreFlyers = false 
)

Here is the call graph for this function:

Here is the caller graph for this function:

std::string SquadAgent::getState ( )

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:

void SquadAgent::inMerge ( SquadAgent squadToMerge,
BWAPI::Position  toMerge = BWAPI::Positions::None 
)

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 call 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:

Here is the call graph for this function:

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