BWAPI
|
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 };