BWAPI
SnippyHolloW-BroodwarBotQ-f01ab56/src/Macro/TechTimeline.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <BWAPI.h>
00003 #include <map>
00004 
00005 //Timeline of when TechTypes will be started and finished.
00006 class TechTimeline
00007 {
00008   public:
00009     TechTimeline();
00010     void reset();
00011     int getStartTime(BWAPI::TechType t);
00012     int getFinishTime(BWAPI::TechType t);
00013     bool isPlanned(BWAPI::TechType t);
00014     void registerTechStart(int frame, BWAPI::TechType t);
00015     void registerTechFinish(int frame, BWAPI::TechType t);
00016     std::map< BWAPI::TechType, std::pair< int, int > > techEvents;
00017 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines