BWAPI
|
#include <BattleUnit.h>
Public Member Functions | |
const std::vector < BWAPI::Position > & | getPPath () |
BWAPI::Position | getPPath (unsigned int n) |
BattleUnit (BWAPI::Unit *unit) | |
virtual | ~BattleUnit () |
void | attack (const BWAPI::Position &p) |
bool | operator== (const BattleUnit &bu) const |
virtual void | update ()=0 |
Public Attributes | |
std::vector< BWAPI::TilePosition > | btpath |
int | _sheight |
int | _slarge |
unsigned int | _tick |
BWAPI::Unit * | unit |
BWAPI::Unit * | targetEnemy |
BWAPI::Unit * | oorTargetEnemy |
BWAPI::Position | target |
Protected Member Functions | |
void | drawVelocityArrow () const |
void | drawPath () const |
void | drawBTPath () const |
void | drawPPath () const |
void | drawWalkability () const |
void | drawEnclosingBox () const |
void | drawTarget () const |
Protected Attributes | |
int | _accel |
double | _topSpeed |
BWAPI::TilePosition | _tptarget |
BWAPI::Position | _unitPos |
std::vector< WalkTilePosition > | _path |
std::vector< BWAPI::Position > | _ppath |
BWAPI::Unit * | oldTarget |
Friends | |
void | baseMicro () |
void | zealotMicro () |
BattleUnit::BattleUnit | ( | BWAPI::Unit * | unit | ) |
BattleUnit::~BattleUnit | ( | ) | [virtual] |
void BattleUnit::attack | ( | const BWAPI::Position & | p | ) |
Reimplemented in BayesianUnit.
void BattleUnit::drawBTPath | ( | ) | const [protected] |
void BattleUnit::drawEnclosingBox | ( | ) | const [protected] |
void BattleUnit::drawPath | ( | ) | const [protected] |
void BattleUnit::drawPPath | ( | ) | const [protected] |
void BattleUnit::drawTarget | ( | ) | const [protected] |
void BattleUnit::drawVelocityArrow | ( | ) | const [protected] |
void BattleUnit::drawWalkability | ( | ) | const [protected] |
const std::vector< BWAPI::Position > & BattleUnit::getPPath | ( | ) |
Position BattleUnit::getPPath | ( | unsigned int | n | ) |
bool BattleUnit::operator== | ( | const BattleUnit & | bu | ) | const |
virtual void BattleUnit::update | ( | ) | [pure virtual] |
Implemented in BayesianUnit.
void baseMicro | ( | ) | [friend] |
void zealotMicro | ( | ) | [friend] |
int BattleUnit::_accel [protected] |
std::vector<WalkTilePosition> BattleUnit::_path [protected] |
std::vector<BWAPI::Position> BattleUnit::_ppath [protected] |
unsigned int BattleUnit::_tick |
double BattleUnit::_topSpeed [protected] |
BWAPI::TilePosition BattleUnit::_tptarget [protected] |
BWAPI::Position BattleUnit::_unitPos [protected] |
std::vector<BWAPI::TilePosition> BattleUnit::btpath |
BWAPI::Unit* BattleUnit::oldTarget [protected] |
BWAPI::Unit* BattleUnit::oorTargetEnemy |
BWAPI::Position BattleUnit::target |
BWAPI::Unit* BattleUnit::targetEnemy |
BWAPI::Unit* BattleUnit::unit |