|
BWAPI
|
00001 #ifndef UALBERTABOTMODULE_H 00002 #define UALBERTABOTMODULE_H 00003 #include <BWAPI.h> 00004 #include "GameCommander.h" 00005 #include <iostream> 00006 #include <fstream> 00007 #include "Logger.h" 00008 #include "MapTools.h" 00009 #include "HardCodedInfo.h" 00010 00011 class UAlbertaBotModule : public BWAPI::AIModule 00012 { 00013 GameCommander gameCommander; 00014 00015 public: 00016 00017 UAlbertaBotModule(); 00018 ~UAlbertaBotModule(); 00019 00020 void onStart(); 00021 void onFrame(); 00022 void onEnd(bool isWinner); 00023 void onUnitDestroy(BWAPI::Unit * unit); 00024 void onUnitMorph(BWAPI::Unit * unit); 00025 void onPlayerLeft(BWAPI::Player * player) {} 00026 void onNukeDetect(BWAPI::Position target) {} 00027 void onSendText(std::string text); 00028 void onUnitCreate(BWAPI::Unit * unit); 00029 void onUnitShow(BWAPI::Unit * unit); 00030 void onUnitHide(BWAPI::Unit * unit); 00031 void onUnitRenegade(BWAPI::Unit * unit); 00032 00033 void parseMap(); 00034 void moveSelectedUnit(int x, int y); 00035 }; 00036 00037 #endif
1.7.6.1