BWAPI
|
00001 #ifndef COMBATSCVMICRO_H 00002 #define COMBATSCVMICRO_H 00003 #include "MicroTacticsModel.h" 00004 #include "BWTA.h" 00005 #include "CrawlingBallAttack.h" 00006 00007 using namespace BWTA; 00008 class AgentPool; 00009 00010 class CombatSCVMicroTactics : public MicroTacticsModel { 00011 00012 public: 00013 CombatSCVMicroTactics::CombatSCVMicroTactics(Unit* u, AgentPool* p, CrawlingBallAttack* c); 00014 CombatSCVMicroTactics::CombatSCVMicroTactics(Unit* u, int movementLag); 00015 virtual bool MicroTacticsModel::executeTactics(); 00016 virtual Unit* getUnit(); 00017 virtual void setMovementLag(int l); 00018 virtual void move(Position p); 00019 virtual UnitType getKnownType(); 00020 private: 00021 Unit* element; 00022 Unit* closestEnemy; 00023 Position targetLoc; 00024 AgentPool* agentPool; 00025 int wait; 00026 int initialMovementLag; 00027 int movementLagTimer; 00028 Unit* followTarget; 00029 Chokepoint* cpTarget; 00030 BaseLocation* bTarget; 00031 bool inPosition; 00032 CrawlingBallAttack* squadTactics; 00033 UnitType knownType; 00034 }; 00035 00036 00037 #endif