BWAPI
trunk/bwapi/include/BWAPI/Race.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <string>
00003 #include <set>
00004 #include "Type.h"
00005 namespace BWAPI
00006 {
00007   class UnitType;
00008   class Race : public Type
00009   {
00010     public:
00011       Race();
00012       Race(int id);
00013 
00016       const std::string &getName() const;
00017       const char *c_str() const;
00018 
00021       UnitType getWorker() const;
00022 
00027       UnitType getCenter() const;
00028 
00031       UnitType getRefinery() const;
00032 
00035       UnitType getTransport() const;
00036 
00039       UnitType getSupplyProvider() const;
00040   };
00041   namespace Races
00042   {
00045     Race getRace(std::string name);
00046 
00048     const std::set<Race>& allRaces();
00049     void init();
00050     extern const Race Zerg;
00051     extern const Race Terran;
00052     extern const Race Protoss;
00053     extern const Race Random;
00054     extern const Race Other;
00055     extern const Race None;
00056     extern const Race Unknown;
00057   }
00058 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines