#include <C4Network2.h>
Public Member Functions | |
C4Network2Status () | |
C4NetGameState | getState () const |
int32_t | getCtrlMode () const |
int32_t | getTargetCtrlTick () const |
const char * | getStateName () const |
const char * | getDescription () const |
bool | isEnabled () const |
bool | isLobbyActive () const |
bool | isPastLobby () const |
bool | isPaused () const |
bool | isRunning () const |
void | Set (C4NetGameState eState, int32_t iTargetCtrlTick) |
void | SetCtrlMode (int32_t iCtrlMode) |
void | SetTargetTick (int32_t iTargetCtrlTick) |
void | Clear () |
void | CompileFunc (StdCompiler *pComp, bool fReference) |
void | CompileFunc (StdCompiler *pComp) override |
C4NetIOPacket | pack (const C4NetIO::addr_t &addr=C4NetIO::addr_t()) const |
C4NetIOPacket | pack (uint8_t cStatus, const C4NetIO::addr_t &addr=C4NetIO::addr_t()) const |
void | unpack (const C4NetIOPacket &Pkt, char *pStatus=nullptr) |
Protected Attributes | |
C4NetGameState | eState {GS_None} |
int32_t | iCtrlMode |
int32_t | iTargetCtrlTick {-1} |
Definition at line 69 of file C4Network2.h.
|
default |
void C4Network2Status::Clear | ( | ) |
Definition at line 97 of file C4Network2.cpp.
References eState, GS_None, and iTargetCtrlTick.
Referenced by C4Network2::Clear().
|
overridevirtual |
Implements C4PacketBase.
Definition at line 102 of file C4Network2.cpp.
References CompileFunc().
void C4Network2Status::CompileFunc | ( | StdCompiler * | pComp, |
bool | fReference | ||
) |
Definition at line 107 of file C4Network2.cpp.
References eState, GS_Go, GS_Init, GS_Lobby, GS_None, GS_Pause, iCtrlMode, iTargetCtrlTick, mkIntPackAdapt(), mkNamingAdapt(), and StdCompiler::Value().
Referenced by CompileFunc().
|
inline |
Definition at line 81 of file C4Network2.h.
References iCtrlMode.
Referenced by C4Network2::DrawStatus(), C4Network2::OnStatusAck(), and C4Network2::SetCtrlMode().
const char * C4Network2Status::getDescription | ( | ) | const |
Definition at line 69 of file C4Network2.cpp.
References eState, GS_Go, GS_Init, GS_Lobby, GS_None, GS_Pause, and LoadResStr().
Referenced by C4StartupNetListEntry::SetReference().
|
inline |
Definition at line 80 of file C4Network2.h.
References eState.
Referenced by C4Network2::CheckStatusAck(), C4Network2::CheckStatusReached(), C4Network2::HandleConn(), C4Network2::HandleConnRe(), C4Network2::HandleJoinData(), C4Network2::HandlePacket(), C4Network2::HandlePuncherPacket(), C4Network2::HandleStatusAck(), C4Network2::isFrozen(), C4Network2::OnClientDisconnect(), C4Network2::OnDisconn(), C4Network2::OnPuncherConnect(), C4Network2::OnStatusAck(), C4Network2::SetCtrlMode(), and C4Network2::Sync().
const char * C4Network2Status::getStateName | ( | ) | const |
Definition at line 56 of file C4Network2.cpp.
References eState, GS_Go, GS_Init, GS_Lobby, GS_None, and GS_Pause.
Referenced by C4Network2::ChangeGameStatus(), C4Network2::DrawStatus(), C4Network2::HandleJoinData(), C4Network2::HandleStatus(), and C4Network2::OnStatusAck().
|
inline |
Definition at line 82 of file C4Network2.h.
References iTargetCtrlTick.
Referenced by C4Network2::CheckStatusReached(), C4Network2::DrawStatus(), C4Network2::HandleStatus(), C4Network2::HandleStatusAck(), and C4Network2::OnStatusAck().
|
inline |
Definition at line 86 of file C4Network2.h.
References eState, and GS_None.
Referenced by C4Network2::isEnabled().
|
inline |
Definition at line 87 of file C4Network2.h.
References eState, and GS_Lobby.
Referenced by C4Network2::isLobbyActive(), and C4StartupNetListEntry::SetReference().
|
inline |
Definition at line 88 of file C4Network2.h.
References eState, and GS_Lobby.
Referenced by C4StartupNetDlg::DoOK(), C4Console::In(), C4Network2::isPastLobby(), C4TeamList::RecheckPlayerInfoTeams(), and C4StartupNetListEntry::SetReference().
|
inline |
Definition at line 89 of file C4Network2.h.
References eState, and GS_Pause.
Referenced by C4Network2::isPaused(), and C4Network2::isPausing().
|
inline |
Definition at line 90 of file C4Network2.h.
Referenced by C4Network2::isRunning().
|
inherited |
Definition at line 150 of file C4Packet2.cpp.
Referenced by MkC4NetIOPacket().
|
inherited |
Definition at line 155 of file C4Packet2.cpp.
References mkDecompileAdapt(), and mkInsertAdapt().
void C4Network2Status::Set | ( | C4NetGameState | eState, |
int32_t | iTargetCtrlTick | ||
) |
Definition at line 82 of file C4Network2.cpp.
References eState, and iTargetCtrlTick.
Referenced by C4Network2::ChangeGameStatus(), and C4Network2::InitHost().
void C4Network2Status::SetCtrlMode | ( | int32_t | iCtrlMode | ) |
Definition at line 87 of file C4Network2.cpp.
References iCtrlMode.
Referenced by C4Network2::ChangeGameStatus(), and C4Network2::InitHost().
void C4Network2Status::SetTargetTick | ( | int32_t | iTargetCtrlTick | ) |
Definition at line 92 of file C4Network2.cpp.
References iTargetCtrlTick.
Referenced by C4Network2::CheckStatusReached(), and C4Network2::UpdateChaseTarget().
|
inherited |
Definition at line 160 of file C4Packet2.cpp.
References C4NetIOPacket::getPBuf(), C4NetIOPacket::getRef(), and C4NetIOPacket::getStatus().
Referenced by C4IDPacket::C4IDPacket(), and C4Network2IO::HandlePacket().
|
protected |
Definition at line 75 of file C4Network2.h.
Referenced by Clear(), CompileFunc(), getDescription(), getState(), getStateName(), isEnabled(), isLobbyActive(), isPastLobby(), isPaused(), isRunning(), and Set().
|
protected |
Definition at line 76 of file C4Network2.h.
Referenced by CompileFunc(), getCtrlMode(), and SetCtrlMode().
|
protected |
Definition at line 77 of file C4Network2.h.
Referenced by Clear(), CompileFunc(), getTargetCtrlTick(), Set(), and SetTargetTick().