BWAPI
|
00001 #pragma once 00002 00003 #include "Interface.h" 00004 00005 #include "Singleton.h" 00006 00007 class WallTrackerClass 00008 { 00009 public: 00010 WallTrackerClass(){} 00011 00012 void onBegin(); 00013 00014 TilePosition getWallPosition(BWAPI::UnitType type); 00015 bool canForgeExpand(); 00016 00017 std::map<TilePosition, BWAPI::UnitType> getWallTiles(); 00018 00019 private: 00020 std::map<BWAPI::UnitType, std::list<TilePosition>> mWallPositions; 00021 }; 00022 00023 typedef Singleton<WallTrackerClass> WallTracker;