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

#include <ZealotUnit.h>

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

List of all members.

Public Member Functions

 ZealotUnit (BWAPI::Unit *u)
virtual ~ZealotUnit ()
virtual void micro ()
virtual void check ()
virtual int getAttackDuration ()
virtual std::set< BWAPI::UnitType > getSetPrio ()

Protected Member Functions

bool decideToFlee ()
void flee ()
void updateTargetEnemy ()
void clearDamages ()
int fightMove ()

Static Protected Attributes

static std::set< BWAPI::UnitType > setPrio

Constructor & Destructor Documentation

ZealotUnit::ZealotUnit ( BWAPI::Unit *  u)
ZealotUnit::~ZealotUnit ( ) [virtual]

Member Function Documentation

void ZealotUnit::check ( ) [virtual]

Implements GroundUnit.

void ZealotUnit::clearDamages ( ) [protected]

Reimplemented from BayesianUnit.

bool ZealotUnit::decideToFlee ( ) [protected, virtual]

Reimplemented from BayesianUnit.

Here is the caller graph for this function:

int ZealotUnit::fightMove ( ) [protected]

approach our target enemy if not in range and in our priority targets

approach out of range target

Reimplemented from BayesianUnit.

Here is the call graph for this function:

Here is the caller graph for this function:

void ZealotUnit::flee ( ) [protected]

Reimplemented from BayesianUnit.

Here is the call graph for this function:

Here is the caller graph for this function:

int ZealotUnit::getAttackDuration ( ) [virtual]

Implements GroundUnit.

Here is the caller graph for this function:

std::set< BWAPI::UnitType > ZealotUnit::getSetPrio ( ) [virtual]

Implements GroundUnit.

void ZealotUnit::micro ( ) [virtual]

Dodge storm, drag mine, drag scarab

Implements GroundUnit.

Here is the call graph for this function:

void ZealotUnit::updateTargetEnemy ( ) [protected]

oorTarget = closest in the setPrio

targetEnemy = in range, the ones in setPrio have the priority otherwise the closest

Rule out what we don't want to attack

Take one in the setPrio and in range or one in range or the closest

Reimplemented from BayesianUnit.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

std::set< BWAPI::UnitType > ZealotUnit::setPrio [static, protected]

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