|
ProtoBot
|
Public Member Functions | |
| void | onStart () |
| void | onFrame () |
| void | toggleDraw () |
| void | draw () const |
| void | addEnemyInfluence (const BWAPI::Position &pos, int strength) |
| void | addAllyInfluence (const BWAPI::Position &pos, int strength) |
| void | addEnemyBuildingInfluence (const BWAPI::Position &pos, const BWAPI::UnitType &type) |
| void | addAllyBuildingInfluence (const BWAPI::Position &pos, const BWAPI::UnitType &type) |
| int | getEnemyInfluence (int x, int y) const |
| int | getAllyInfluence (int x, int y) const |
| int | getEnemyInfluenceAtTile (const BWAPI::TilePosition &tile) const |
| int | getAllyInfluenceAtTile (const BWAPI::TilePosition &tile) const |
| int | getCombinedInfluenceAtTile (const BWAPI::TilePosition &tile) const |
| int | buildingInfluenceValue (const BWAPI::UnitType &type) const |
| int | getHeight () const |
| int | getWidth () const |
| BWAPI::Position | findWeakBuildingSpot () |
| std::vector< BWAPI::Position > | getNoMansAreas () const |
| std::string | toStringSummary () const |
Public Attributes | |
| bool | drawEnabled = true |
Private Member Functions | |
| void | decayMaps () |
| void | normalizeMaps () |
Private Attributes | |
| int | width |
| int | height |
| std::vector< std::vector< int > > | enemyMap |
| std::vector< std::vector< int > > | allyMap |
Definition at line 5 of file InfluenceMap.h.
| InfluenceMap::InfluenceMap | ( | ) |
Definition at line 4 of file InfluenceMap.cpp.
| void InfluenceMap::addAllyBuildingInfluence | ( | const BWAPI::Position & | pos, |
| const BWAPI::UnitType & | type ) |
Definition at line 243 of file InfluenceMap.cpp.
| void InfluenceMap::addAllyInfluence | ( | const BWAPI::Position & | pos, |
| int | strength ) |
Definition at line 44 of file InfluenceMap.cpp.
| void InfluenceMap::addEnemyBuildingInfluence | ( | const BWAPI::Position & | pos, |
| const BWAPI::UnitType & | type ) |
Definition at line 237 of file InfluenceMap.cpp.
| void InfluenceMap::addEnemyInfluence | ( | const BWAPI::Position & | pos, |
| int | strength ) |
Definition at line 21 of file InfluenceMap.cpp.
| int InfluenceMap::buildingInfluenceValue | ( | const BWAPI::UnitType & | type | ) | const |
Definition at line 230 of file InfluenceMap.cpp.
|
private |
Definition at line 102 of file InfluenceMap.cpp.
| void InfluenceMap::draw | ( | ) | const |
Definition at line 186 of file InfluenceMap.cpp.
| BWAPI::Position InfluenceMap::findWeakBuildingSpot | ( | ) |
Definition at line 112 of file InfluenceMap.cpp.
| int InfluenceMap::getAllyInfluence | ( | int | x, |
| int | y ) const |
Definition at line 72 of file InfluenceMap.cpp.
| int InfluenceMap::getAllyInfluenceAtTile | ( | const BWAPI::TilePosition & | tile | ) | const |
Definition at line 88 of file InfluenceMap.cpp.
| int InfluenceMap::getCombinedInfluenceAtTile | ( | const BWAPI::TilePosition & | tile | ) | const |
Definition at line 97 of file InfluenceMap.cpp.
| int InfluenceMap::getEnemyInfluence | ( | int | x, |
| int | y ) const |
Definition at line 67 of file InfluenceMap.cpp.
| int InfluenceMap::getEnemyInfluenceAtTile | ( | const BWAPI::TilePosition & | tile | ) | const |
Definition at line 78 of file InfluenceMap.cpp.
| int InfluenceMap::getHeight | ( | ) | const |
Definition at line 249 of file InfluenceMap.cpp.
| std::vector< BWAPI::Position > InfluenceMap::getNoMansAreas | ( | ) | const |
Definition at line 131 of file InfluenceMap.cpp.
| int InfluenceMap::getWidth | ( | ) | const |
Definition at line 254 of file InfluenceMap.cpp.
| void InfluenceMap::onFrame | ( | ) |
Definition at line 15 of file InfluenceMap.cpp.
| void InfluenceMap::onStart | ( | ) |
Definition at line 6 of file InfluenceMap.cpp.
| void InfluenceMap::toggleDraw | ( | ) |
Definition at line 170 of file InfluenceMap.cpp.
| std::string InfluenceMap::toStringSummary | ( | ) | const |
Definition at line 143 of file InfluenceMap.cpp.
|
private |
Definition at line 40 of file InfluenceMap.h.
| bool InfluenceMap::drawEnabled = true |
Definition at line 12 of file InfluenceMap.h.
|
private |
Definition at line 39 of file InfluenceMap.h.
|
private |
Definition at line 37 of file InfluenceMap.h.
|
private |
Definition at line 36 of file InfluenceMap.h.