BWAPI
BTHAI/SCProjects/include/BWAPI/GameType.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <string>
00003 #include <set>
00004 namespace BWAPI
00005 {
00006   class GameType
00007   {
00008     public:
00009       GameType();
00010       GameType(int id);
00011       GameType(const GameType& other);
00012       GameType& operator=(const GameType& other);
00013       operator int() const;
00014 
00016       int getID() const;
00017 
00020       std::string getName() const;
00021     private:
00022       int id;
00023   };
00024   namespace GameTypes
00025   {
00028     GameType getGameType(std::string name);
00029 
00031     std::set<GameType>& allGameTypes();
00032     void init();
00033     extern const GameType Melee;
00034     extern const GameType Free_For_All;
00035     extern const GameType One_on_One;
00036     extern const GameType Capture_The_Flag;
00037     extern const GameType Greed;
00038     extern const GameType Slaughter;
00039     extern const GameType Sudden_Death;
00040     extern const GameType Ladder;
00041     extern const GameType Use_Map_Settings;
00042     extern const GameType Team_Melee;
00043     extern const GameType Team_Free_For_All;
00044     extern const GameType Team_Capture_The_Flag;
00045     extern const GameType Top_vs_Bottom;
00046     extern const GameType Pro_Gamer_League;
00047     extern const GameType None;
00048     extern const GameType Unknown;
00049   }
00050 }
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines