BWAPI
SnippyHolloW-BroodwarBotQ-f01ab56/src/Micro/Units/ProtossGround/ZealotUnit.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 #include "Defines.h"
00004 #include "Micro/Units/GroundUnit.h"
00005 #include <BWAPI.h>
00006 
00007 class ZealotUnit : public GroundUnit
00008 {
00009 protected:
00010     static std::set<BWAPI::UnitType> setPrio;
00011     bool decideToFlee();
00012         void flee();
00013     void updateTargetEnemy();
00014     void clearDamages();
00015     int fightMove();
00016 public:
00017     ZealotUnit(BWAPI::Unit* u);
00018     virtual ~ZealotUnit();
00019 #ifdef __LEARNING_PROB_TABLES__
00020         static void initProbTables();
00021 #endif
00022     virtual void micro();
00023     virtual void check();
00024     virtual int getAttackDuration();
00025     virtual std::set<BWAPI::UnitType> getSetPrio();
00026 private:
00027         static ProbTables _sProbTables;
00028 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines