PRooFPS-dd Dev Doc 1.0
PRooFPS-dd Developer Documentation
Loading...
Searching...
No Matches
proofps_dd::ServerEvent Struct Reference

Detailed Description

Definition at line 17 of file ServerEventLister.h.

#include <ServerEventLister.h>

Public Types

enum class  EventType {
  Connected , Disconnected , TeamChanged , ExplosionMultiKill ,
  GameRestarted , NewRound , EndRound
}
 

Public Member Functions

 ServerEvent ()
 
 ServerEvent (const EventType &eventType)
 
 ServerEvent (int nPlayersKilledByExplosion)
 
 ServerEvent (const std::string &sPlayerName, const ImVec4 &clrPlayerName, const EventType &eventType)
 
 ServerEvent (const std::string &sPlayerName, const ImVec4 &clrPlayerName, const unsigned int &iNewTeamId, const ImVec4 &clrNewTeam)
 
 ServerEvent (std::string &&sPlayerName, ImVec4 &&clrPlayerName, const EventType &eventType)
 
 ServerEvent (std::string &&sPlayerName, ImVec4 &&clrPlayerName, const unsigned int &iNewTeamId, ImVec4 &&clrNewTeam)
 
void draw ()
 

Public Attributes

EventType m_eEventType {}
 
std::string m_sPlayerName
 
ImVec4 m_clrPlayerName
 
ImVec4 m_clrSecondary
 
std::string m_sAuxText
 

Member Enumeration Documentation

◆ EventType

Enumerator
Connected 
Disconnected 
TeamChanged 
ExplosionMultiKill 
GameRestarted 
NewRound 
EndRound 

Definition at line 19 of file ServerEventLister.h.

Constructor & Destructor Documentation

◆ ServerEvent() [1/7]

proofps_dd::ServerEvent::ServerEvent ( )
inline

Definition at line 40 of file ServerEventLister.h.

◆ ServerEvent() [2/7]

proofps_dd::ServerEvent::ServerEvent ( const EventType & eventType)
inline

Definition at line 43 of file ServerEventLister.h.

◆ ServerEvent() [3/7]

proofps_dd::ServerEvent::ServerEvent ( int nPlayersKilledByExplosion)
inline

Definition at line 64 of file ServerEventLister.h.

◆ ServerEvent() [4/7]

proofps_dd::ServerEvent::ServerEvent ( const std::string & sPlayerName,
const ImVec4 & clrPlayerName,
const EventType & eventType )
inline

Definition at line 71 of file ServerEventLister.h.

◆ ServerEvent() [5/7]

proofps_dd::ServerEvent::ServerEvent ( const std::string & sPlayerName,
const ImVec4 & clrPlayerName,
const unsigned int & iNewTeamId,
const ImVec4 & clrNewTeam )
inline

Definition at line 90 of file ServerEventLister.h.

◆ ServerEvent() [6/7]

proofps_dd::ServerEvent::ServerEvent ( std::string && sPlayerName,
ImVec4 && clrPlayerName,
const EventType & eventType )
inline

Definition at line 103 of file ServerEventLister.h.

◆ ServerEvent() [7/7]

proofps_dd::ServerEvent::ServerEvent ( std::string && sPlayerName,
ImVec4 && clrPlayerName,
const unsigned int & iNewTeamId,
ImVec4 && clrNewTeam )
inline

Definition at line 122 of file ServerEventLister.h.

Member Function Documentation

◆ draw()

void proofps_dd::ServerEvent::draw ( )
inline

Definition at line 135 of file ServerEventLister.h.

Member Data Documentation

◆ m_clrPlayerName

ImVec4 proofps_dd::ServerEvent::m_clrPlayerName

Definition at line 35 of file ServerEventLister.h.

◆ m_clrSecondary

ImVec4 proofps_dd::ServerEvent::m_clrSecondary

Definition at line 36 of file ServerEventLister.h.

◆ m_eEventType

EventType proofps_dd::ServerEvent::m_eEventType {}

Definition at line 33 of file ServerEventLister.h.

◆ m_sAuxText

std::string proofps_dd::ServerEvent::m_sAuxText

Definition at line 38 of file ServerEventLister.h.

◆ m_sPlayerName

std::string proofps_dd::ServerEvent::m_sPlayerName

Definition at line 34 of file ServerEventLister.h.


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