BWAPI
SnippyHolloW-BroodwarBotQ-f01ab56/src/Macro/UnitCountTimeline.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <BWAPI.h>
00003 #include <map>
00004 
00005 //Timeline of the planned amount of each UnitType
00006 class UnitCountTimeline
00007 {
00008   public:
00009     UnitCountTimeline();
00010     void reset();
00011     int getFirstTime(BWAPI::UnitType t, int count);
00012     int getFinalCount(BWAPI::UnitType t);
00013     void registerUnitCountChange(int frame, BWAPI::UnitType t, int count);
00014     std::map< BWAPI::UnitType, std::map< int, int > > unitEvents;
00015     std::map< BWAPI::UnitType, int > unitFinalCounts;
00016 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines