BWAPI
quorum/include/BWAPI/Event.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <BWAPI/EventType.h>
00003 #include <BWAPI/Player.h>
00004 #include <BWAPI/Unit.h>
00005 #include <BWAPI/Position.h>
00006 #include <string>
00007 
00008 namespace BWAPI
00009 {
00010   class Event
00011   {
00012     public:
00013       Event();
00014       bool operator==(const Event& other);
00015       static Event MatchStart();
00016       static Event MatchEnd(bool isWinner);
00017       static Event MatchFrame();
00018       static Event MenuFrame();
00019       static Event SendText(std::string text);
00020       static Event ReceiveText(Player* player, std::string text);
00021       static Event PlayerLeft(Player* player);
00022       static Event NukeDetect(Position target);
00023       static Event UnitDiscover(Unit* unit);
00024       static Event UnitEvade(Unit* unit);
00025       static Event UnitShow(Unit* unit);
00026       static Event UnitHide(Unit* unit);
00027       static Event UnitCreate(Unit* unit);
00028       static Event UnitDestroy(Unit* unit);
00029       static Event UnitMorph(Unit* unit);
00030       static Event UnitRenegade(Unit* unit);
00031       static Event SaveGame(std::string gameName);
00032       EventType::Enum type;
00033       Position position;
00034       std::string text;
00035       Unit* unit;
00036       Player* player;
00037       bool isWinner;
00038   };
00039 }
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines