|
BWAPI
|
00001 #pragma once 00002 00003 #include "Common.h" 00004 #include "BWTA.h" 00005 00006 #include <map> 00007 00008 class HardCodedInfo { 00009 00010 std::ofstream logStream; 00011 std::string logFile; 00012 00013 HardCodedInfo(); 00014 static HardCodedInfo * instance; 00015 00016 void setChokeDefendLocations(); 00017 00018 00019 std::map<std::string, std::vector<BWAPI::Position>> mainChokes; 00020 std::map<std::string, std::vector<BWAPI::Position>> naturalChokes; 00021 00022 public: 00023 00024 enum ChokeType {MAIN_CHOKE, NATURAL_CHOKE, CHOKE_TYPES}; 00025 00026 static HardCodedInfo * getInstance(); 00027 00028 void drawChokePoints(); 00029 00030 BWAPI::Position getChokepoint(ChokeType type, BWAPI::Player * player); 00031 };
1.7.6.1