OpenClonk
C4GameLobby Namespace Reference

Classes

class  C4PacketCountdown
 
class  C4PacketSetScenarioParameter
 
class  Countdown
 
class  MainDlg
 
class  ScenDesc
 

Functions

void LobbyError (const char *szErrorMsg)
 

Variables

bool UserAbort = false
 
const int32_t AlmostStartCountdownTime = 10
 

Function Documentation

◆ LobbyError()

void C4GameLobby::LobbyError ( const char *  szErrorMsg)

Definition at line 725 of file C4GameLobby.cpp.

References C4Network2::GetLobby(), Log(), Network, and C4GameLobby::MainDlg::OnError().

Referenced by C4GameLobby::MainDlg::OnClientAddPlayer(), C4GameLobby::MainDlg::OnClientReadyStateChange(), and C4MessageInput::ProcessCommand().

726  {
727  // get lobby
728  MainDlg *pLobby = ::Network.GetLobby();
729  if (pLobby) pLobby->OnError(szErrorMsg);
730  else Log(szErrorMsg);
731  }
C4Network2 Network
Definition: C4Globals.cpp:53
class C4GameLobby::MainDlg * GetLobby() const
Definition: C4Network2.h:216
void OnError(const char *szErrMsg)
bool Log(const char *szMessage)
Definition: C4Log.cpp:202
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ AlmostStartCountdownTime

const int32_t C4GameLobby::AlmostStartCountdownTime = 10

◆ UserAbort

bool C4GameLobby::UserAbort = false