class
Event
Contents
Public static functions
- static auto MatchEnd(bool isWinner) -> Event
- static auto MatchFrame() -> Event
- static auto MatchStart() -> Event
- static auto MenuFrame() -> Event
- static auto NukeDetect(Position target) -> Event
- static auto PlayerLeft(Player player) -> Event
-
static auto ReceiveText(Player player,
const std::
string& text) -> Event -
static auto SaveGame(const std::
string& gameName) -> Event -
static auto SendText(const std::
string& text) -> Event - static auto UnitComplete(Unit unit) -> Event
- static auto UnitCreate(Unit unit) -> Event
- static auto UnitDestroy(Unit unit) -> Event
- static auto UnitDiscover(Unit unit) -> Event
- static auto UnitEvade(Unit unit) -> Event
- static auto UnitHide(Unit unit) -> Event
- static auto UnitMorph(Unit unit) -> Event
- static auto UnitRenegade(Unit unit) -> Event
- static auto UnitShow(Unit unit) -> Event
Constructors, destructors, conversion operators
- Event() defaulted
Public functions
- auto getPlayer() const -> Player
- auto getPosition() const -> Position
-
auto getText() const -> const std::
string& -
auto getType() const -> EventType::
Enum - auto getUnit() const -> Unit
- auto isWinner() const -> bool
- auto operator==(const Event& other) const -> bool
- auto setPlayer(Player player) -> Event&
- auto setPosition(Position position) -> Event&
-
auto setText(const std::
string& text) -> Event& -
auto setType(EventType::
Enum type) -> Event& - auto setUnit(Unit unit) -> Event&
- auto setWinner(bool isWinner) -> Event&