BWAPI
|
00001 #pragma once 00002 #include <string> 00003 #include <set> 00004 00005 #define BWAPI_UNIT_COMMAND_TYPE_COUNT 46 00006 00007 namespace BWAPI 00008 { 00009 class UnitCommandType 00010 { 00011 public: 00012 UnitCommandType(); 00013 UnitCommandType(int id); 00014 UnitCommandType(const UnitCommandType& other); 00015 UnitCommandType& operator=(const UnitCommandType& other); 00016 operator int() const; 00017 00019 int getID() const; 00020 00023 std::string getName() const; 00024 private: 00025 int id; 00026 }; 00027 namespace UnitCommandTypes 00028 { 00031 UnitCommandType getUnitCommandType(std::string name); 00032 00034 std::set<UnitCommandType>& allUnitCommandTypes(); 00035 void init(); 00036 extern const UnitCommandType Attack_Move; 00037 extern const UnitCommandType Attack_Unit; 00038 extern const UnitCommandType Build; 00039 extern const UnitCommandType Build_Addon; 00040 extern const UnitCommandType Train; 00041 extern const UnitCommandType Morph; 00042 extern const UnitCommandType Research; 00043 extern const UnitCommandType Upgrade; 00044 extern const UnitCommandType Set_Rally_Position; 00045 extern const UnitCommandType Set_Rally_Unit; 00046 extern const UnitCommandType Move; 00047 extern const UnitCommandType Patrol; 00048 extern const UnitCommandType Hold_Position; 00049 extern const UnitCommandType Stop; 00050 extern const UnitCommandType Follow; 00051 extern const UnitCommandType Gather; 00052 extern const UnitCommandType Return_Cargo; 00053 extern const UnitCommandType Repair; 00054 extern const UnitCommandType Burrow; 00055 extern const UnitCommandType Unburrow; 00056 extern const UnitCommandType Cloak; 00057 extern const UnitCommandType Decloak; 00058 extern const UnitCommandType Siege; 00059 extern const UnitCommandType Unsiege; 00060 extern const UnitCommandType Lift; 00061 extern const UnitCommandType Land; 00062 extern const UnitCommandType Load; 00063 extern const UnitCommandType Unload; 00064 extern const UnitCommandType Unload_All; 00065 extern const UnitCommandType Unload_All_Position; 00066 extern const UnitCommandType Right_Click_Position; 00067 extern const UnitCommandType Right_Click_Unit; 00068 extern const UnitCommandType Halt_Construction; 00069 extern const UnitCommandType Cancel_Construction; 00070 extern const UnitCommandType Cancel_Addon; 00071 extern const UnitCommandType Cancel_Train; 00072 extern const UnitCommandType Cancel_Train_Slot; 00073 extern const UnitCommandType Cancel_Morph; 00074 extern const UnitCommandType Cancel_Research; 00075 extern const UnitCommandType Cancel_Upgrade; 00076 extern const UnitCommandType Use_Tech; 00077 extern const UnitCommandType Use_Tech_Position; 00078 extern const UnitCommandType Use_Tech_Unit; 00079 extern const UnitCommandType Place_COP; 00080 extern const UnitCommandType None; 00081 extern const UnitCommandType Unknown; 00082 } 00083 }