#include <C4Client.h>
Public Member Functions | |
C4Client () | |
C4Client (const C4ClientCore &Core) | |
~C4Client () | |
const C4ClientCore & | getCore () const |
int32_t | getID () const |
bool | isHost () const |
const char * | getName () const |
const char * | getCUID () const |
const char * | getNick () const |
bool | isActivated () const |
bool | isObserver () const |
bool | isLobbyReady () const |
bool | isRegistered () const |
bool | IsIgnored () const |
bool | isLocal () const |
C4Network2Client * | getNetClient () const |
void | SetCore (const C4ClientCore &NewCore) |
void | SetID (int32_t iID) |
void | SetActivated (bool fnActivated) |
void | SetObserver () |
void | SetLobbyReady (bool fnLobbyReady, time_t *time_since_last_change=nullptr) |
void | SetLocal () |
void | ToggleIgnore () |
void | UnlinkNetClient () |
void | Remove () |
void | CompileFunc (StdCompiler *pComp) |
Friends | |
class | C4ClientList |
Definition at line 84 of file C4Client.h.
|
default |
C4Client::C4Client | ( | const C4ClientCore & | Core | ) |
Definition at line 108 of file C4Client.cpp.
C4Client::~C4Client | ( | ) |
Definition at line 114 of file C4Client.cpp.
void C4Client::CompileFunc | ( | StdCompiler * | pComp | ) |
Definition at line 153 of file C4Client.cpp.
References StdCompiler::isDeserializer(), and StdCompiler::Value().
|
inline |
Definition at line 104 of file C4Client.h.
Referenced by C4Network2Client::DoConnectAttempt(), C4Network2Client::DoTCPSimultaneousOpen(), C4Network2Client::getCore(), C4ClientList::getLocalCore(), C4Network2::HandleJoinData(), C4ClientList::operator=(), and C4Network2ClientList::RegClient().
|
inline |
Definition at line 108 of file C4Client.h.
References C4ClientCore::getCUID().
Referenced by C4StartupNetListEntry::IsSameHost().
|
inline |
Definition at line 105 of file C4Client.h.
References C4ClientCore::getID().
Referenced by C4ClientList::Add(), C4GameControlNetwork::CopyClientList(), C4ClientList::CtrlRemove(), C4GameControl::InitLocal(), C4GameControl::InitNetwork(), C4Network2Players::OnClientPart(), C4GameLobby::MainDlg::OnClientSound(), C4GameLobby::MainDlg::OnMessage(), C4Network2ClientListDlg::OnSound(), C4ClientList::operator=(), C4MessageInput::ProcessCommand(), C4Network2ClientList::RegClient(), Remove(), and C4Network2ClientListBox::Update().
|
inline |
Definition at line 107 of file C4Client.h.
References C4ClientCore::getName().
Referenced by C4GameControlNetwork::CopyClientList(), C4ControlVote::getDesc(), C4Game::InitNetworkFromReference(), C4StartupNetListEntry::IsSameHost(), C4StartupNetListEntry::KeywordMatch(), C4Network2::OpenVoteDialog(), C4PlayerInfoList::RecreatePlayers(), C4PlayerInfoList::SetAsRestoreInfos(), C4StartupNetListEntry::SetReference(), and C4Network2ClientDlg::UpdateText().
|
inline |
Definition at line 117 of file C4Client.h.
Referenced by C4ClientList::CtrlRemove(), C4Network2ClientList::RegClient(), C4ClientList::Remove(), C4Network2ClientListBox::Update(), and C4Network2ClientDlg::UpdateText().
|
inline |
Definition at line 109 of file C4Client.h.
References C4ClientCore::getNick().
|
inline |
Definition at line 110 of file C4Client.h.
References C4ClientCore::isActivated().
Referenced by C4GameControlNetwork::CopyClientList(), C4GameControlNetwork::DecideControlDelivery(), C4Network2Players::GetClientChatColor(), C4Network2::HandleJoinData(), C4Network2Players::HandlePlayerInfo(), C4Network2Players::JoinLocalPlayer(), C4Network2Players::OnStatusGoReached(), C4GameControl::Prepare(), C4Network2::RequestActivate(), and C4Network2ClientDlg::UpdateText().
|
inline |
Definition at line 106 of file C4Client.h.
References C4ClientCore::isHost().
Referenced by C4ClientList::CtrlRemove(), C4GameControl::InitNetwork(), C4Network2ClientListBox::Update(), and C4Network2ClientDlg::UpdateText().
|
inline |
Definition at line 114 of file C4Client.h.
Referenced by C4GameLobby::MainDlg::OnMessage().
|
inline |
Definition at line 112 of file C4Client.h.
References C4ClientCore::isLobbyReady().
|
inline |
Definition at line 116 of file C4Client.h.
Referenced by C4ClientList::Add(), C4Network2Client::isLocal(), C4Network2ClientList::RegClient(), and C4Network2ClientDlg::UpdateText().
|
inline |
Definition at line 111 of file C4Client.h.
References C4ClientCore::isObserver().
Referenced by C4Network2Players::JoinLocalPlayer(), and C4Network2::RequestActivate().
|
inline |
Definition at line 113 of file C4Client.h.
References C4ClientCore::isRegistered().
void C4Client::Remove | ( | ) |
Definition at line 147 of file C4Client.cpp.
References getID(), Players, and C4PlayerList::RemoveAtClient().
Referenced by C4ClientList::Remove().
void C4Client::SetActivated | ( | bool | fnActivated | ) |
Definition at line 120 of file C4Client.cpp.
References C4Game::FrameCounter, Game, C4ClientCore::SetActivated(), and C4Network2Client::SetLastActivity().
Referenced by C4GameControl::ChangeToLocal().
|
inline |
Definition at line 119 of file C4Client.h.
Referenced by C4ClientList::operator=().
|
inline |
Definition at line 120 of file C4Client.h.
References C4ClientCore::SetID().
Referenced by C4ClientList::SetLocalID().
void C4Client::SetLobbyReady | ( | bool | fnLobbyReady, |
time_t * | time_since_last_change = nullptr |
||
) |
Definition at line 128 of file C4Client.cpp.
References C4ClientCore::SetLobbyReady().
void C4Client::SetLocal | ( | ) |
Definition at line 141 of file C4Client.cpp.
Referenced by C4ClientList::AddLocal().
|
inline |
Definition at line 123 of file C4Client.h.
References C4ClientCore::SetObserver().
|
inline |
Definition at line 127 of file C4Client.h.
|
inline |
Definition at line 129 of file C4Client.h.
Referenced by C4Network2Client::~C4Network2Client().
|
friend |
Definition at line 86 of file C4Client.h.