#include <C4Control.h>
Public Member Functions | |
C4ControlJoinPlayer ()=default | |
C4ControlJoinPlayer (const char *szFilename, int32_t iAtClient, int32_t iIDInfo, C4Network2ResCore ResCore) | |
C4ControlJoinPlayer (const char *szFilename, int32_t iAtClient, int32_t iIDInfo) | |
DECLARE_C4CONTROL_VIRTUALS bool | PreExecute () const override |
void | PreRec (C4Record *pRecord) override |
void | Strip () |
int32_t | getByClient () const |
bool | LocalControl () const |
bool | HostControl () const |
void | SetByClient (int32_t iByClient) |
virtual void | Execute () const =0 |
virtual bool | Lobby () const |
virtual bool | Sync () const |
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 | |
StdStrBuf | Filename |
int32_t | iAtClient {-1} |
int32_t | idInfo {-1} |
bool | fByRes {false} |
StdBuf | PlrData |
C4Network2ResCore | ResCore |
int32_t | iByClient |
Definition at line 420 of file C4Control.h.
|
default |
C4ControlJoinPlayer::C4ControlJoinPlayer | ( | const char * | szFilename, |
int32_t | iAtClient, | ||
int32_t | iIDInfo, | ||
C4Network2ResCore | ResCore | ||
) |
Definition at line 1003 of file C4Control.cpp.
C4ControlJoinPlayer::C4ControlJoinPlayer | ( | const char * | szFilename, |
int32_t | iAtClient, | ||
int32_t | iIDInfo | ||
) |
Definition at line 1009 of file C4Control.cpp.
References C4Config::AtTempPath(), C4Group_PackDirectoryTo(), Config, StdStrBuf::Copy(), DirectoryExists(), EraseFile(), StdStrBuf::getData(), GetFilenameOnly(), StdBuf::LoadFromFile(), C4Reloc::LocateItem(), LogF(), MakeTempFilename(), PlrData, Reloc, and StdStrBuf::Take().
|
overridevirtualinherited |
Implements C4PacketBase.
Definition at line 70 of file C4Control.cpp.
References C4ControlPacket::iByClient, mkIntPackAdapt(), mkNamingAdapt(), and StdCompiler::Value().
|
pure virtualinherited |
Referenced by C4GameControl::DoSyncCheck(), C4GameControl::ExecControlPacket(), and C4Control::Execute().
|
inlineinherited |
Definition at line 42 of file C4Control.h.
References C4ControlPacket::iByClient.
Referenced by C4Network2::GetVote(), C4GameControlNetwork::HandlePacket(), and C4Network2::OpenVoteDialog().
|
inlineinherited |
Definition at line 44 of file C4Control.h.
References C4ClientIDHost, and C4ControlPacket::iByClient.
|
inlinevirtualinherited |
Reimplemented in C4ControlMessage, C4ControlPlayerInfo, C4ControlClientRemove, C4ControlClientUpdate, C4ControlClientJoin, and C4ControlSet.
Definition at line 53 of file C4Control.h.
Referenced by C4GameControl::DoInput().
|
inherited |
Definition at line 60 of file C4Control.cpp.
References C4GameControl::ClientID(), Control, and C4ControlPacket::iByClient.
|
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().
|
overridevirtual |
Reimplemented from C4ControlPacket.
Definition at line 1150 of file C4Control.cpp.
References C4Network2ResList::AddByCore(), C4Game::Clients, Control, fByRes, Game, C4ClientList::getClientByID(), C4Network2ResCore::getID(), C4Network2ResList::getRefRes(), iAtClient, C4Network2Res::isLoading(), C4GameControl::isNetwork(), Network, ResCore, and C4Network2::ResList.
|
overridevirtual |
Reimplemented from C4ControlPacket.
Definition at line 1167 of file C4Control.cpp.
References C4Record::AddFile(), C4Group_CopyItem(), StdStrBuf::Copy(), fByRes, FormatString(), StdStrBuf::getData(), C4Network2Res::getFile(), C4Network2ResCore::getFileName(), GetFilename(), C4Network2ResCore::getID(), C4Network2ResList::getRefRes(), C4Network2Res::isRemoved(), MakeTempFilename(), Network, ResCore, and C4Network2::ResList.
|
inherited |
Definition at line 65 of file C4Control.cpp.
References C4ControlPacket::iByClient.
void C4ControlJoinPlayer::Strip | ( | ) |
Definition at line 1120 of file C4Control.cpp.
References C4Config::AtTempPath(), C4CFN_BigIcon, C4NetResMaxBigicon, C4Group::Close(), Config, C4Group::Delete(), EraseFile(), fByRes, Filename, C4Group::FindEntry(), StdStrBuf::getData(), GetFilename(), StdBuf::LoadFromFile(), C4Group::Open(), PlrData, and StdBuf::SaveToFile().
Referenced by C4Playback::Strip().
|
inlinevirtualinherited |
Reimplemented in C4ControlVoteEnd, C4ControlVote, C4ControlMessage, C4ControlPlayerInfo, C4ControlClientRemove, C4ControlClientUpdate, C4ControlClientJoin, and C4ControlSyncCheck.
Definition at line 55 of file C4Control.h.
Referenced by C4Playback::Check(), and C4GameControl::DoInput().
|
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 430 of file C4Control.h.
Referenced by PreExecute(), PreRec(), and Strip().
|
protected |
Definition at line 427 of file C4Control.h.
Referenced by Strip().
|
protected |
Definition at line 428 of file C4Control.h.
Referenced by PreExecute().
|
protectedinherited |
Definition at line 39 of file C4Control.h.
Referenced by C4ControlPacket::CompileFunc(), C4ControlPacket::getByClient(), C4ControlVote::getDesc(), C4ControlPacket::HostControl(), C4ControlPacket::LocalControl(), and C4ControlPacket::SetByClient().
|
protected |
Definition at line 429 of file C4Control.h.
|
protected |
Definition at line 431 of file C4Control.h.
Referenced by C4ControlJoinPlayer(), and Strip().
|
protected |
Definition at line 432 of file C4Control.h.
Referenced by PreExecute(), and PreRec().