|
BWAPI
|
00001 #ifndef BURROWMANAGER_H_ 00002 #define BURROWMANAGER_H_ 00003 #include <Common.h> 00004 #include <BWAPI.h> 00005 #include "../MapGrid.h" 00006 #include "../UnitInfoState.h" 00007 00008 00009 class BurrowManager { 00010 00011 BurrowManager(); 00012 00013 int hydraRange; 00014 00015 static BurrowManager * instance; 00016 00017 void doBurrow(BWAPI::Unit * unit, UnitVector & enemyNear); 00018 00019 public: 00020 00021 BWAPI::Unit * exception; 00022 00023 static BurrowManager * getInstance(); 00024 00025 void update(); 00026 void clearExceptions(); 00027 void addException(BWAPI::Unit * unit); 00028 00029 00030 }; 00031 #endif 00032
1.7.6.1