BWAPI
|
#include <ExplorationSquad.h>
Public Member Functions | |
ExplorationSquad (int mId, string mName, int mMoveType, int mPriority) | |
bool | isActive () |
void | computeActions () |
void | setGoal (TilePosition mGoal) |
void | clearGoal () |
TilePosition | getGoal () |
bool | hasGoal () |
void | printInfo () |
This class handle squads used to explore the game world. Any unit type can be used as explorer.
Author: Johan Hagelback (johan.hagelback@gmail.com)
ExplorationSquad::ExplorationSquad | ( | int | mId, |
string | mName, | ||
int | mMoveType, | ||
int | mPriority | ||
) |
void ExplorationSquad::clearGoal | ( | ) | [virtual] |
void ExplorationSquad::computeActions | ( | ) | [virtual] |
Called each update to issue orders.
Reimplemented from Squad.
TilePosition ExplorationSquad::getGoal | ( | ) | [virtual] |
bool ExplorationSquad::hasGoal | ( | ) | [virtual] |
Returns true if this squad has an assigned goal.
Reimplemented from Squad.
bool ExplorationSquad::isActive | ( | ) | [virtual] |
void ExplorationSquad::printInfo | ( | ) | [virtual] |
Prints some info about the squad.
Reimplemented from Squad.
void ExplorationSquad::setGoal | ( | TilePosition | mGoal | ) | [virtual] |