BWAPI
SnippyHolloW-BroodwarBotQ-f01ab56/src/Micro/Micro.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <Utils/CSingleton.h>
00003 #include "Macro/BWSAL.h"
00004 #include <BWTA.h>
00005 #include <set>
00006 #include "Micro/Goals/GoalManager.h"
00007 
00008 class Micro : public CSingleton<Micro>
00009 {
00010         friend class CSingleton<Micro>;
00011         Micro();
00012         ~Micro();
00013         bool _launchedFirstPush;
00014         bool _launchedFirstDrop;
00015 public:
00016         GoalManager* goalManager;
00017         std::set<BWTA::Chokepoint*> ourChokes;
00018         BWTA::Chokepoint* frontChoke;
00019         std::set<BWTA::BaseLocation*> needDefense;
00020         int drops;
00021         void update();
00022         void onUnitCreate(BWAPI::Unit* unit);
00023         void onUnitShow(BWAPI::Unit* unit);
00024         void onUnitDestroy(BWAPI::Unit* unit);
00025         void onUnitRenegade(BWAPI::Unit* unit);
00026         void onNukeDetect(BWAPI::Position target);
00027         BWAPI::Position getDefensePosition() const;
00028 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines