BWAPI
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
ProtectUnitTask Class Reference

#include <ProtectUnitTask.h>

Inheritance diagram for ProtectUnitTask:
Inheritance graph
[legend]
Collaboration diagram for ProtectUnitTask:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ProtectUnitTask (Agent *agent, Environment *env)
virtual ~ProtectUnitTask (void)
virtual void addAgent (Agent *agent)
virtual void removeAgent (Agent *agent)
AgentgetProtectedAgent ()
Unit * getTargetEnemy ()
int getReadyRange ()
Position getGroupPosition ()
virtual void calculatePriority ()
virtual double evaluateAptitude (Agent *agent)
virtual void evaluateStatus ()
virtual void evaluateNeededUnits ()
virtual bool execute (Agent *agent)

Static Public Member Functions

static void generateNecessaryTasks (Environment *env)

Protected Member Functions

bool marineExecute (Agent *agent)
bool medicExecute (Agent *agent)
bool wraithExecute (Agent *agent)
bool tankExecute (Agent *agent)
bool siegeExecute (Agent *agent)

Protected Attributes

Agent_protectedAgent
int _neededUnits
Unit * _targetEnemy
int _readyRange
Position _groupPosition
Agent_centerAgent

Constructor & Destructor Documentation

Here is the call graph for this function:

Here is the caller graph for this function:

ProtectUnitTask::~ProtectUnitTask ( void  ) [virtual]

Here is the call graph for this function:


Member Function Documentation

void ProtectUnitTask::addAgent ( Agent agent) [virtual]

Reimplemented from Task.

Here is the call graph for this function:

Implements Task.

Here is the call graph for this function:

double ProtectUnitTask::evaluateAptitude ( Agent agent) [virtual]

Implements Task.

Here is the call graph for this function:

Implements Task.

void ProtectUnitTask::evaluateStatus ( ) [virtual]

Implements Task.

Here is the call graph for this function:

bool ProtectUnitTask::execute ( Agent agent) [virtual]

Implements Task.

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:

bool ProtectUnitTask::marineExecute ( Agent agent) [protected]

Here is the call graph for this function:

Here is the caller graph for this function:

bool ProtectUnitTask::medicExecute ( Agent agent) [protected]

Here is the call graph for this function:

Here is the caller graph for this function:

void ProtectUnitTask::removeAgent ( Agent agent) [virtual]

Reimplemented from Task.

Here is the call graph for this function:

bool ProtectUnitTask::siegeExecute ( Agent agent) [protected]

Here is the call graph for this function:

Here is the caller graph for this function:

bool ProtectUnitTask::tankExecute ( Agent agent) [protected]

Here is the call graph for this function:

Here is the caller graph for this function:

bool ProtectUnitTask::wraithExecute ( Agent agent) [protected]

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Position ProtectUnitTask::_groupPosition [protected]
Unit* ProtectUnitTask::_targetEnemy [protected]

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