|
ProtoBot
|
Public Member Functions | |
| void | SetCommander (ProtoBotCommander *commander) |
| InformationManager (ProtoBotCommander *commanderReference) | |
| void | onStart () |
| void | onFrame () |
| void | onUnitCreate (BWAPI::Unit unit) |
| void | onUnitComplete (BWAPI::Unit unit) |
| void | onUnitMorph (BWAPI::Unit unit) |
| void | onUnitDestroy (BWAPI::Unit unit) |
| double | evaluateGameState () const |
| const std::set< BWAPI::Unit > & | getKnownEnemies () const |
| const std::map< BWAPI::Unit, EnemyBuildingInfo > & | getKnownEnemyBuildings () const |
| const std::map< int, TrackedEnemy > & | getTrackedEnemies () const |
| FriendlyUnitCounter | getFriendlyUnitCounter () const |
| FriendlyBuildingCounter | getFriendlyBuildingCounter () const |
| FriendlyTechCounter | getFriendlyTechCounter () const |
| FriendlyUpgradeCounter | getFriendlyUpgradeCounter () const |
| std::vector< const BWEM::Base * > | FindUnownedBases () const |
| std::vector< const BWEM::Base * > | FindPlayerOwnedBases () const |
| std::vector< const BWEM::Base * > | FindEnemyOwnedBases () const |
| bool | enemyHasAirTech () const |
| bool | enemyHasCloakTech () const |
| void | printKnownEnemies () const |
| void | printKnownEnemyBuildings () const |
| void | printEnemyBuildingCounter () const |
| void | updateEnemyBuildingCounter () |
| void | printEnemyResearch () const |
| void | printEnemyUpgrades () const |
| void | printTrackedEnemies () const |
| void | printFriendlyUnit () |
| void | printFriendlyBuilding () |
| void | printFriendlyResearch () |
| void | printFriendlyUpgrades () |
| std::vector< const BWEM::Base * > | GetPlayerBases () const |
| std::vector< const BWEM::Base * > | GetEnemyBases () const |
| std::vector< const BWEM::Base * > | GetNearestUnownedBases (const BWAPI::Position &from, int count=3) const |
| std::vector< const BWEM::Base * > | FindNewBases (int count=3) const |
| void | TestPrintBaseOwnership () const |
| void | TestDrawBaseOwnership () const |
| int | getEnemyGroundThreatAt (BWAPI::Position p) const |
| int | getEnemyDetectionAt (BWAPI::Position p) const |
| ThreatQueryResult | queryThreatAt (const BWAPI::Position &pos) const |
| bool | isEnemyEarlyPush () const |
Static Public Member Functions | |
| static InformationManager & | Instance () |
Public Attributes | |
| ProtoBotCommander * | commanderReference |
| std::vector< BWAPI::Position > | EnemyBaseLocations |
Private Member Functions | |
| void | incrementFriendlyUnit (FriendlyUnitCounter &counter, BWAPI::UnitType type) |
| void | incrementFriendlyBuilding (FriendlyBuildingCounter &counter, BWAPI::UnitType type) |
| void | decrementFriendlyUnit (FriendlyUnitCounter &counter, BWAPI::UnitType type) |
| void | decrementFriendlyBuilding (FriendlyBuildingCounter &counter, BWAPI::UnitType type) |
| void | checkResearch () |
| void | checkUpgrades () |
| void | checkEnemyResearch () |
| void | checkEnemyUpgrades () |
Private Attributes | |
| std::set< BWAPI::Unit > | _knownEnemies |
| std::map< BWAPI::Unit, EnemyBuildingInfo > | _knownEnemyBuildings |
| std::map< int, TrackedEnemy > | trackedEnemies |
| InfluenceMap | influenceMap |
| ThreatGrid | threatGrid |
| Playstyle | playstyle = Playstyle::None |
| double | gameState |
| FriendlyUnitCounter | friendlyUnitCounter |
| FriendlyBuildingCounter | friendlyBuildingCounter |
| FriendlyTechCounter | friendlyTechCounter |
| FriendlyUpgradeCounter | friendlyUpgradeCounter |
| EnemyBuildingCounter | enemyBuildingCounter |
| EnemyTechCounter | enemyTechCounter |
| EnemyUpgradeCounter | enemyUpgradeCounter |
Definition at line 260 of file InformationManager.h.
| InformationManager::InformationManager | ( | ) |
Definition at line 7 of file InformationManager.cpp.
|
private |
Definition at line 1347 of file InformationManager.cpp.
|
private |
Definition at line 1393 of file InformationManager.cpp.
|
private |
Definition at line 452 of file InformationManager.cpp.
|
private |
Definition at line 496 of file InformationManager.cpp.
|
private |
Definition at line 633 of file InformationManager.cpp.
|
private |
Definition at line 614 of file InformationManager.cpp.
| bool InformationManager::enemyHasAirTech | ( | ) | const |
Definition at line 1475 of file InformationManager.cpp.
| bool InformationManager::enemyHasCloakTech | ( | ) | const |
Definition at line 1519 of file InformationManager.cpp.
| double InformationManager::evaluateGameState | ( | ) | const |
Definition at line 870 of file InformationManager.cpp.
| std::vector< const BWEM::Base * > InformationManager::FindEnemyOwnedBases | ( | ) | const |
Definition at line 378 of file InformationManager.cpp.
| std::vector< const BWEM::Base * > InformationManager::FindNewBases | ( | int | count = 3 | ) | const |
Definition at line 407 of file InformationManager.cpp.
| std::vector< const BWEM::Base * > InformationManager::FindPlayerOwnedBases | ( | ) | const |
Definition at line 349 of file InformationManager.cpp.
| std::vector< const BWEM::Base * > InformationManager::FindUnownedBases | ( | ) | const |
Definition at line 307 of file InformationManager.cpp.
| std::vector< const BWEM::Base * > InformationManager::GetEnemyBases | ( | ) | const |
Definition at line 1211 of file InformationManager.cpp.
| int InformationManager::getEnemyDetectionAt | ( | BWAPI::Position | p | ) | const |
Definition at line 1462 of file InformationManager.cpp.
| int InformationManager::getEnemyGroundThreatAt | ( | BWAPI::Position | p | ) | const |
Definition at line 1457 of file InformationManager.cpp.
|
inline |
Definition at line 325 of file InformationManager.h.
|
inline |
Definition at line 328 of file InformationManager.h.
|
inline |
Definition at line 322 of file InformationManager.h.
|
inline |
Definition at line 331 of file InformationManager.h.
|
inline |
Definition at line 313 of file InformationManager.h.
|
inline |
Definition at line 316 of file InformationManager.h.
| std::vector< const BWEM::Base * > InformationManager::GetNearestUnownedBases | ( | const BWAPI::Position & | from, |
| int | count = 3 ) const |
Definition at line 1217 of file InformationManager.cpp.
| std::vector< const BWEM::Base * > InformationManager::GetPlayerBases | ( | ) | const |
Definition at line 1205 of file InformationManager.cpp.
|
inline |
Definition at line 319 of file InformationManager.h.
|
private |
Definition at line 595 of file InformationManager.cpp.
|
private |
Definition at line 576 of file InformationManager.cpp.
|
static |
Definition at line 11 of file InformationManager.cpp.
| bool InformationManager::isEnemyEarlyPush | ( | ) | const |
Definition at line 1547 of file InformationManager.cpp.
| void InformationManager::onFrame | ( | ) |
Definition at line 56 of file InformationManager.cpp.
| void InformationManager::onStart | ( | ) |
Definition at line 22 of file InformationManager.cpp.
| void InformationManager::onUnitComplete | ( | BWAPI::Unit | unit | ) |
Definition at line 726 of file InformationManager.cpp.
| void InformationManager::onUnitCreate | ( | BWAPI::Unit | unit | ) |
Definition at line 717 of file InformationManager.cpp.
| void InformationManager::onUnitDestroy | ( | BWAPI::Unit | unit | ) |
Definition at line 744 of file InformationManager.cpp.
| void InformationManager::onUnitMorph | ( | BWAPI::Unit | unit | ) |
Definition at line 738 of file InformationManager.cpp.
| void InformationManager::printEnemyBuildingCounter | ( | ) | const |
Definition at line 803 of file InformationManager.cpp.
| void InformationManager::printEnemyResearch | ( | ) | const |
Definition at line 1249 of file InformationManager.cpp.
| void InformationManager::printEnemyUpgrades | ( | ) | const |
Definition at line 1290 of file InformationManager.cpp.
| void InformationManager::printFriendlyBuilding | ( | ) |
Definition at line 1041 of file InformationManager.cpp.
| void InformationManager::printFriendlyResearch | ( | ) |
Definition at line 1062 of file InformationManager.cpp.
| void InformationManager::printFriendlyUnit | ( | ) |
Definition at line 1021 of file InformationManager.cpp.
| void InformationManager::printFriendlyUpgrades | ( | ) |
Definition at line 1077 of file InformationManager.cpp.
| void InformationManager::printKnownEnemies | ( | ) | const |
Definition at line 782 of file InformationManager.cpp.
| void InformationManager::printKnownEnemyBuildings | ( | ) | const |
Definition at line 792 of file InformationManager.cpp.
| void InformationManager::printTrackedEnemies | ( | ) | const |
Definition at line 853 of file InformationManager.cpp.
| ThreatQueryResult InformationManager::queryThreatAt | ( | const BWAPI::Position & | pos | ) | const |
Definition at line 1467 of file InformationManager.cpp.
| void InformationManager::SetCommander | ( | ProtoBotCommander * | commander | ) |
Definition at line 17 of file InformationManager.cpp.
| void InformationManager::TestDrawBaseOwnership | ( | ) | const |
Definition at line 1161 of file InformationManager.cpp.
| void InformationManager::TestPrintBaseOwnership | ( | ) | const |
Definition at line 1101 of file InformationManager.cpp.
| void InformationManager::updateEnemyBuildingCounter | ( | ) |
Definition at line 652 of file InformationManager.cpp.
|
private |
Definition at line 263 of file InformationManager.h.
|
private |
Definition at line 264 of file InformationManager.h.
| ProtoBotCommander* InformationManager::commanderReference |
Definition at line 287 of file InformationManager.h.
| std::vector<BWAPI::Position> InformationManager::EnemyBaseLocations |
Definition at line 294 of file InformationManager.h.
|
private |
Definition at line 274 of file InformationManager.h.
|
private |
Definition at line 275 of file InformationManager.h.
|
private |
Definition at line 276 of file InformationManager.h.
|
private |
Definition at line 271 of file InformationManager.h.
|
private |
Definition at line 272 of file InformationManager.h.
|
private |
Definition at line 270 of file InformationManager.h.
|
private |
Definition at line 273 of file InformationManager.h.
|
private |
Definition at line 269 of file InformationManager.h.
|
private |
Definition at line 266 of file InformationManager.h.
|
private |
Definition at line 268 of file InformationManager.h.
|
private |
Definition at line 267 of file InformationManager.h.
|
private |
Definition at line 265 of file InformationManager.h.