BWAPI
|
00001 #ifndef __RUSHSQUAD_H__ 00002 #define __RUSHSQUAD_H__ 00003 00004 #include "BaseAgent.h" 00005 #include "Squad.h" 00006 00007 using namespace BWAPI; 00008 using namespace BWTA; 00009 using namespace std; 00010 00015 class RushSquad : public Squad { 00016 00017 private: 00018 Unit* findWorkerTarget(); 00019 00020 public: 00022 RushSquad(int mId, string mName, int mMoveType, int mPriority); 00023 00027 bool isActive(); 00028 00030 void computeActions(); 00031 00033 void setGoal(TilePosition mGoal); 00034 00037 void clearGoal(); 00038 00040 TilePosition getGoal(); 00041 00043 bool hasGoal(); 00044 00046 void printInfo(); 00047 }; 00048 00049 #endif