BWAPI
trunk/bwapi/include/BWAPI/PlayerType.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 PlayerType : public Type
00008   {
00009     public:
00010       PlayerType();
00011       PlayerType(int id);
00014       const std::string &getName() const;
00015       const char *c_str() const;
00016   };
00017   namespace PlayerTypes
00018   {
00021     PlayerType getPlayerType(std::string name);
00022 
00024     const std::set<PlayerType>& allPlayerTypes();
00025     void init();
00026     extern const PlayerType None;
00027     extern const PlayerType Computer;
00028     extern const PlayerType Player;
00029     extern const PlayerType RescuePassive;
00030     extern const PlayerType EitherPreferComputer;
00031     extern const PlayerType EitherPreferHuman;
00032     extern const PlayerType Neutral;
00033     extern const PlayerType Closed;
00034     extern const PlayerType PlayerLeft;
00035     extern const PlayerType ComputerLeft;
00036     extern const PlayerType Unknown;
00037   }
00038 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines