BWAPI
|
#include <HarassSquad.h>
Public Member Functions | |
HarassSquad (int mId, string mName, int mPriority) | |
bool | isActive () |
void | computeActions () |
void | setGoal (TilePosition mGoal) |
void | clearGoal () |
TilePosition | getGoal () |
bool | hasGoal () |
void | printInfo () |
This squad locates vulnerable bases and attacks them. A base is considered vulnerable if it is not protected by towers. The squad is most effective if it contists of cloaking units.
Author: Johan Hagelback (johan.hagelback@gmail.com)
HarassSquad::HarassSquad | ( | int | mId, |
string | mName, | ||
int | mPriority | ||
) |
Creates a Shuttle squad with a unique id and a name (for example AirAttackSquad, MainGroundSquad).
void HarassSquad::clearGoal | ( | ) | [virtual] |
void HarassSquad::computeActions | ( | ) | [virtual] |
Called each update to issue orders.
Reimplemented from Squad.
TilePosition HarassSquad::getGoal | ( | ) | [virtual] |
bool HarassSquad::hasGoal | ( | ) | [virtual] |
Returns true if this squad has an assigned goal.
Reimplemented from Squad.
bool HarassSquad::isActive | ( | ) | [virtual] |
void HarassSquad::printInfo | ( | ) | [virtual] |
Prints some info about the squad.
Reimplemented from Squad.
void HarassSquad::setGoal | ( | TilePosition | mGoal | ) | [virtual] |