BWAPI
|
00001 #pragma once 00002 00003 #include "Interface.h" 00004 00005 #include "Singleton.h" 00006 00007 struct StateTypeDef 00008 { 00009 enum type 00010 { 00011 BuildArmy, 00012 TechNormal, 00013 TechHigh 00014 }; 00015 }; 00016 typedef SafeEnum<StateTypeDef> StateType; 00017 00018 class GameProgressDetectionClass 00019 { 00020 public: 00021 GameProgressDetectionClass(){} 00022 00023 void update(); 00024 00025 bool shouldGG() const { return mShouldGG; } 00026 bool shouldAttack() const { return mShouldAttack; } 00027 StateType getState() const { return mState; } 00028 00029 private: 00030 bool mShouldGG; 00031 bool mShouldAttack; 00032 00033 StateType mState; 00034 }; 00035 00036 typedef Singleton<GameProgressDetectionClass> GameProgressDetection;