BWAPI
|
00001 #pragma once 00002 #include <string> 00003 #include <set> 00004 namespace BWAPI 00005 { 00011 class Order 00012 { 00013 public: 00014 Order(); 00015 Order(int id); 00016 Order(const Order& other); 00017 Order& operator=(const Order& other); 00018 operator int() const; 00019 00021 int getID() const; 00022 00024 std::string getName() const; 00025 private: 00026 int id; 00027 }; 00028 namespace Orders 00029 { 00031 Order getOrder(std::string name); 00032 00034 std::set<Order>& allOrders(); 00035 00036 void init(); 00037 extern const Order Die; 00038 extern const Order Stop; 00039 extern const Order Guard; 00040 extern const Order PlayerGuard; 00041 extern const Order TurretGuard; 00042 extern const Order BunkerGuard; 00043 extern const Order Move; 00044 extern const Order AttackUnit; 00045 extern const Order AttackTile; 00046 extern const Order Hover; 00047 extern const Order AttackMove; 00048 extern const Order InfestedCommandCenter; 00049 extern const Order UnusedNothing; 00050 extern const Order UnusedPowerup; 00051 extern const Order TowerGuard; 00052 extern const Order VultureMine; 00053 extern const Order Nothing; 00054 extern const Order Nothing3; 00055 extern const Order CastInfestation; 00056 extern const Order InfestingCommandCenter; 00057 extern const Order PlaceBuilding; 00058 extern const Order BuildProtoss2; 00059 extern const Order ConstructingBuilding; 00060 extern const Order Repair; 00061 extern const Order PlaceAddon; 00062 extern const Order BuildAddon; 00063 extern const Order Train; 00064 extern const Order RallyPointUnit; 00065 extern const Order RallyPointTile; 00066 extern const Order ZergBirth; 00067 extern const Order ZergUnitMorph; 00068 extern const Order ZergBuildingMorph; 00069 extern const Order IncompleteBuilding; 00070 extern const Order BuildNydusExit; 00071 extern const Order EnterNydusCanal; 00072 extern const Order Follow; 00073 extern const Order Carrier; 00074 extern const Order ReaverCarrierMove; 00075 extern const Order CarrierIgnore2; 00076 extern const Order Reaver; 00077 extern const Order TrainFighter; 00078 extern const Order InterceptorAttack; 00079 extern const Order ScarabAttack; 00080 extern const Order RechargeShieldsUnit; 00081 extern const Order RechargeShieldsBattery; 00082 extern const Order ShieldBattery; 00083 extern const Order InterceptorReturn; 00084 extern const Order BuildingLand; 00085 extern const Order BuildingLiftOff; 00086 extern const Order DroneLiftOff; 00087 extern const Order LiftingOff; 00088 extern const Order ResearchTech; 00089 extern const Order Upgrade; 00090 extern const Order Larva; 00091 extern const Order SpawningLarva; 00092 extern const Order Harvest1; 00093 extern const Order Harvest2; 00094 extern const Order MoveToGas; 00095 extern const Order WaitForGas; 00096 extern const Order HarvestGas; 00097 extern const Order ReturnGas; 00098 extern const Order MoveToMinerals; 00099 extern const Order WaitForMinerals; 00100 extern const Order MiningMinerals; 00101 extern const Order Harvest3; 00102 extern const Order Harvest4; 00103 extern const Order ReturnMinerals; 00104 extern const Order Interrupted; 00105 extern const Order EnterTransport; 00106 extern const Order PickupIdle; 00107 extern const Order PickupTransport; 00108 extern const Order PickupBunker; 00109 extern const Order Pickup4; 00110 extern const Order PowerupIdle; 00111 extern const Order Sieging; 00112 extern const Order Unsieging; 00113 extern const Order InitCreepGrowth; 00114 extern const Order SpreadCreep; 00115 extern const Order StoppingCreepGrowth; 00116 extern const Order GuardianAspect; 00117 extern const Order ArchonWarp; 00118 extern const Order CompletingArchonsummon; 00119 extern const Order HoldPosition; 00120 extern const Order Cloak; 00121 extern const Order Decloak; 00122 extern const Order Unload; 00123 extern const Order MoveUnload; 00124 extern const Order FireYamatoGun; 00125 extern const Order CastLockdown; 00126 extern const Order Burrowing; 00127 extern const Order Burrowed; 00128 extern const Order Unburrowing; 00129 extern const Order CastDarkSwarm; 00130 extern const Order CastParasite; 00131 extern const Order CastSpawnBroodlings; 00132 extern const Order CastEMPShockwave; 00133 extern const Order NukeWait; 00134 extern const Order NukeTrain; 00135 extern const Order NukeLaunch; 00136 extern const Order NukePaint; 00137 extern const Order NukeUnit; 00138 extern const Order CastNuclearStrike; 00139 extern const Order NukeTrack; 00140 extern const Order CloakNearbyUnits; 00141 extern const Order PlaceMine; 00142 extern const Order RightClickAction; 00143 extern const Order CastRecall; 00144 extern const Order TeleporttoLocation; 00145 extern const Order CastScannerSweep; 00146 extern const Order Scanner; 00147 extern const Order CastDefensiveMatrix; 00148 extern const Order CastPsionicStorm; 00149 extern const Order CastIrradiate; 00150 extern const Order CastPlague; 00151 extern const Order CastConsume; 00152 extern const Order CastEnsnare; 00153 extern const Order CastStasisField; 00154 extern const Order CastHallucination; 00155 extern const Order Hallucination2; 00156 extern const Order ResetCollision; 00157 extern const Order Patrol; 00158 extern const Order CTFCOPInit; 00159 extern const Order CTFCOPStarted; 00160 extern const Order CTFCOP2; 00161 extern const Order ComputerAI; 00162 extern const Order AtkMoveEP; 00163 extern const Order HarassMove; 00164 extern const Order AIPatrol; 00165 extern const Order GuardPost; 00166 extern const Order RescuePassive; 00167 extern const Order Neutral; 00168 extern const Order ComputerReturn; 00169 extern const Order SelfDestrucing; 00170 extern const Order Critter; 00171 extern const Order HiddenGun; 00172 extern const Order OpenDoor; 00173 extern const Order CloseDoor; 00174 extern const Order HideTrap; 00175 extern const Order RevealTrap; 00176 extern const Order Enabledoodad; 00177 extern const Order Disabledoodad; 00178 extern const Order Warpin; 00179 extern const Order Medic; 00180 extern const Order MedicHeal1; 00181 extern const Order HealMove; 00182 extern const Order MedicHeal2; 00183 extern const Order CastRestoration; 00184 extern const Order CastDisruptionWeb; 00185 extern const Order CastMindControl; 00186 extern const Order DarkArchonMeld; 00187 extern const Order CastFeedback; 00188 extern const Order CastOpticalFlare; 00189 extern const Order CastMaelstrom; 00190 extern const Order JunkYardDog; 00191 extern const Order Fatal; 00192 extern const Order None; 00193 extern const Order Unknown; 00194 }; 00195 }