OpenClonk
C4GameControl.h File Reference
Include dependency graph for C4GameControl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  C4GameControl
 

Enumerations

enum  C4ControlMode { CM_None , CM_Local , CM_Network , CM_Replay }
 
enum  C4ControlDeliveryType {
  CDT_Queue = 0 , CDT_Sync = 1 , CDT_Direct = 2 , CDT_Private = 3 ,
  CDT_Decide
}
 

Variables

const int32_t C4SyncCheckRate = 100
 
const int32_t C4SyncCheckMaxKeep = 50
 
C4GameControl Control
 

Enumeration Type Documentation

◆ C4ControlDeliveryType

Enumerator
CDT_Queue 
CDT_Sync 
CDT_Direct 
CDT_Private 
CDT_Decide 

Definition at line 32 of file C4GameControl.h.

33 {
34  CDT_Queue = 0, // Send in control queue (sync)
35  CDT_Sync = 1, // Send, delay execution until net is sync (sync)
36  CDT_Direct = 2, // Send directly to all clients (not sync)
37  CDT_Private = 3, // Send only to some clients (not sync, obviously)
38 
39  CDT_Decide // Use whatever sync mode seems fastest atm (sync)
40 };
@ CDT_Decide
Definition: C4GameControl.h:39
@ CDT_Direct
Definition: C4GameControl.h:36
@ CDT_Sync
Definition: C4GameControl.h:35
@ CDT_Private
Definition: C4GameControl.h:37
@ CDT_Queue
Definition: C4GameControl.h:34

◆ C4ControlMode

Enumerator
CM_None 
CM_Local 
CM_Network 
CM_Replay 

Definition at line 24 of file C4GameControl.h.

25 {
26  CM_None,
27  CM_Local, // control = input
28  CM_Network, // control = input + network input
29  CM_Replay // control = replay
30 };
@ CM_Replay
Definition: C4GameControl.h:29
@ CM_Network
Definition: C4GameControl.h:28
@ CM_Local
Definition: C4GameControl.h:27
@ CM_None
Definition: C4GameControl.h:26

Variable Documentation

◆ C4SyncCheckMaxKeep

const int32_t C4SyncCheckMaxKeep = 50

Definition at line 55 of file C4GameControl.h.

Referenced by C4GameControl::RemoveOldSyncChecks().

◆ C4SyncCheckRate

const int32_t C4SyncCheckRate = 100

Definition at line 53 of file C4GameControl.h.

Referenced by C4Game::CompileFunc(), and C4GameControl::Default().

◆ Control

C4GameControl Control
extern

Definition at line 535 of file C4GameControl.cpp.

Referenced by C4Game::Abort(), C4GameControlNetwork::AddClient(), AddDbgRec(), C4GameControl::AdjustControlRate(), C4ClientPlayerInfos::C4ClientPlayerInfos(), C4GameOverDlg::C4GameOverDlg(), C4Network2IO::CallHandlers(), C4TeamList::CanLocalChooseTeam(), C4Playback::Check(), C4GameControlNetwork::CheckCompleteCtrl(), C4Network2::CheckStatusReached(), C4Game::Clear(), C4Network2::Clear(), C4Game::CompileFunc(), ConsoleDlgProc(), C4Network2::CreateDynamic(), C4ClientList::CtrlRemove(), C4Network2::DeactivateInactiveClients(), C4EditCursor::Delete(), C4PlayerInfoList::DoLocalNonNetworkPlayerInfoUpdate(), C4PlayerInfoList::DoPlayerInfoUpdate(), C4Network2::DrawStatus(), C4Game::DropDef(), C4EditCursor::EMControl(), C4ConsoleGUI::EnableControls(), C4Game::Evaluate(), C4GameControlNetwork::ExecSyncControl(), C4GameControl::Execute(), C4Game::Execute(), C4GameControlNetwork::Execute(), C4Network2::Execute(), C4Network2Stats::ExecuteControlFrame(), C4Console::FileRecord(), C4Game::GameOverCheck(), C4PlayerList::GetAtRemoteClient(), C4Network2::HandleActivateReq(), C4Network2::HandleJoinData(), C4Network2Players::HandlePlayerInfoUpdRequest(), C4Console::In(), C4GameControlNetwork::Init(), C4Game::InitControl(), C4Network2::InitHost(), C4Game::InitKeyboard(), C4Game::InitNetworkFromReference(), C4Game::InitNetworkHost(), C4Game::InitPlayers(), C4MouseControl::IsPassive(), C4Network2::Join(), C4ControlPacket::LocalControl(), C4PlayerInfoList::LocalJoinUnjoinedPlayersInQueue(), LogSilent(), C4ChatInputDialog::OnChatCancel(), C4ChatInputDialog::OnChatInput(), C4Network2::OnClientDisconnect(), C4GameLobby::MainDlg::OnReadyCheck(), C4Network2ResList::OnResComplete(), C4Network2::OpenVoteDialog(), C4Network2::Pause(), C4ControlJoinPlayer::PreExecute(), C4MessageInput::ProcessCommand(), C4MessageInput::ProcessInput(), C4TeamList::ReassignAllTeams(), C4TeamList::RecheckTeams(), C4PlayerInfoList::RecreatePlayers(), C4Network2::RequestActivate(), C4GameControl::RequestRuntimeRecord(), C4PlayerInfoList::RestoreSavegameInfos(), C4PlayerList::Retire(), C4Network2::SendJoinData(), C4TeamList::SendSetTeamColors(), C4TeamList::SendSetTeamDist(), C4Network2Players::SendUpdatedPlayers(), C4ControlSyncCheck::Set(), C4GameControlNetwork::SetActivated(), C4GameControlNetwork::SetCtrlMode(), C4Network2::SetCtrlMode(), C4ToolsDlg::SetLandscapeMode(), C4TeamList::SetTeamColors(), C4TeamList::SetTeamDistribution(), C4Network2::Start(), C4Network2::Sync(), C4Game::Synchronize(), C4Game::Ticks(), C4Network2ClientListDlg::Update(), C4Network2::UpdateChaseTarget(), and C4Network2::Vote().