BWAPI
Aiur/include/BWAPI/Race.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <string>
00003 #include <set>
00004 namespace BWAPI
00005 {
00006   class UnitType;
00007   class Race
00008   {
00009     public:
00010       Race();
00011       Race(int id);
00012       Race(const Race& other);
00013       Race& operator=(const Race& other);
00014       operator int() const;
00015 
00017       int getID() const;
00018 
00021       std::string getName() const;
00022 
00025       UnitType getWorker() const;
00026 
00031       UnitType getCenter() const;
00032 
00035       UnitType getRefinery() const;
00036 
00039       UnitType getTransport() const;
00040 
00043       UnitType getSupplyProvider() const;
00044     private:
00045       int id;
00046   };
00047   namespace Races
00048   {
00051     Race getRace(std::string name);
00052 
00054     std::set<Race>& allRaces();
00055     void init();
00056     extern const Race Zerg;
00057     extern const Race Terran;
00058     extern const Race Protoss;
00059     extern const Race Random;
00060     extern const Race Other;
00061     extern const Race None;
00062     extern const Race Unknown;
00063   }
00064 }
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines