BWAPI
quorum/include/BWAPI/PlayerType.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <string>
00003 #include <set>
00004 namespace BWAPI
00005 {
00006   class PlayerType
00007   {
00008     public:
00009       PlayerType();
00010       PlayerType(int id);
00011       PlayerType(const PlayerType& other);
00012       PlayerType& operator=(const PlayerType& other);
00013       operator int() const;
00014 
00016       int getID() const;
00017 
00020       std::string getName() const;
00021     private:
00022       int id;
00023   };
00024   namespace PlayerTypes
00025   {
00028     PlayerType getPlayerType(std::string name);
00029 
00031     std::set<PlayerType>& allPlayerTypes();
00032     void init();
00033     extern const PlayerType None;
00034     extern const PlayerType Computer;
00035     extern const PlayerType Player;
00036     extern const PlayerType RescuePassive;
00037     extern const PlayerType EitherPreferComputer;
00038     extern const PlayerType EitherPreferHuman;
00039     extern const PlayerType Neutral;
00040     extern const PlayerType Closed;
00041     extern const PlayerType PlayerLeft;
00042     extern const PlayerType ComputerLeft;
00043     extern const PlayerType Unknown;
00044   }
00045 }
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines