Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields
LobbyActionEvent Struct Reference

#include <event.hpp>

Public Types

enum class  Action { Ready , StartGame }
 

Public Member Functions

 LobbyActionEvent ()
 
 LobbyActionEvent (Action action, PlayerRole role)
 
 DEF_SERIALIZE (Archive &ar, const unsigned int version)
 

Data Fields

Action action
 
PlayerRole role
 

Detailed Description

Event representing an action a player can take during the Lobby GUI screen. (Only handle this event in the server while the game phase is set to GamePhase::LOBBY)

Member Enumeration Documentation

◆ Action

enum class LobbyActionEvent::Action
strong
Enumerator
Ready 
StartGame 

Constructor & Destructor Documentation

◆ LobbyActionEvent() [1/2]

LobbyActionEvent::LobbyActionEvent ( )
inline

◆ LobbyActionEvent() [2/2]

LobbyActionEvent::LobbyActionEvent ( Action  action,
PlayerRole  role 
)
inlineexplicit

Member Function Documentation

◆ DEF_SERIALIZE()

LobbyActionEvent::DEF_SERIALIZE ( Archive &  ar,
const unsigned int  version 
)
inline

Field Documentation

◆ action

Action LobbyActionEvent::action

◆ role

PlayerRole LobbyActionEvent::role

The documentation for this struct was generated from the following file: