#include <C4Control.h>
Public Member Functions | |
C4Control () | |
~C4Control () override | |
void | Clear () |
C4IDPacket * | firstPkt () const |
C4IDPacket * | nextPkt (C4IDPacket *pPkt) const |
void | AddHead (C4PacketType eType, C4ControlPacket *pCtrl) |
void | Add (C4PacketType eType, C4ControlPacket *pCtrl) |
void | Take (C4Control &Ctrl) |
void | Append (const C4Control &Ctrl) |
void | Copy (const C4Control &Ctrl) |
void | Remove (C4IDPacket *pPkt) |
void | Delete (C4IDPacket *pPkt) |
bool | PreExecute () const |
void | Execute () const |
void | PreRec (C4Record *pRecord) 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 | |
C4PacketList | Pkts |
Definition at line 64 of file C4Control.h.
|
default |
|
override |
Definition at line 80 of file C4Control.cpp.
References Clear().
|
inline |
Definition at line 82 of file C4Control.h.
References C4PacketList::Add(), and Pkts.
Referenced by C4Network2::AddVote(), C4MouseControl::ButtonUpDragScript(), ConsoleDlgProc(), C4PlayerList::CtrlRemove(), C4GameControl::DoInput(), C4GameControlNetwork::DoInput(), C4GameControl::DoSyncCheck(), C4ScriptGuiWindowAction::Execute(), C4Playback::ExecuteControl(), C4GameControlNetwork::HandleControlPkt(), C4MouseControl::LeftUpDragNone(), C4PlayerInfoList::LocalJoinUnjoinedPlayersInQueue(), C4GameSaveSavegame::OnSaving(), C4ObjectMenu::OnUserClose(), C4ObjectMenu::OnUserEnter(), C4ObjectMenu::OnUserSelectItem(), C4MouseControl::RightUpDragNone(), and C4MouseControl::UpdateCursorTarget().
|
inline |
Definition at line 81 of file C4Control.h.
References C4PacketList::AddHead(), and Pkts.
Referenced by C4PlayerControl::PrepareInput().
|
inline |
Definition at line 85 of file C4Control.h.
References C4PacketList::Append(), and Pkts.
Referenced by C4GameControlPacket::Add(), C4Playback::ExecuteControl(), and C4GameControlNetwork::GetControl().
void C4Control::Clear | ( | ) |
Definition at line 85 of file C4Control.cpp.
References C4PacketList::Clear(), and Pkts.
Referenced by C4GameControlNetwork::Clear(), C4Network2::Clear(), Copy(), C4GameControl::Default(), C4GameControlNetwork::ExecSyncControl(), C4GameControlNetwork::GetControl(), C4GameControl::Prepare(), and ~C4Control().
|
overridevirtual |
Implements C4PacketBase.
Definition at line 138 of file C4Control.cpp.
References Pkts, and StdCompiler::Value().
|
inline |
Definition at line 86 of file C4Control.h.
References C4PacketList::Append(), Clear(), and Pkts.
Referenced by C4GameControlPacket::C4GameControlPacket(), C4Record::Rec(), and C4GameControlPacket::Set().
|
inline |
Definition at line 88 of file C4Control.h.
References C4PacketList::Delete(), and Pkts.
Referenced by C4Network2::EndVote(), and C4GameControl::RemoveOldSyncChecks().
void C4Control::Execute | ( | ) | const |
Definition at line 110 of file C4Control.cpp.
References CID_First, C4ControlPacket::Execute(), firstPkt(), LogF(), and nextPkt().
Referenced by C4GameControl::ExecControl().
|
inline |
Definition at line 78 of file C4Control.h.
References C4PacketList::firstPkt(), and Pkts.
Referenced by C4Network2::AddVote(), C4Network2::EndVote(), C4GameControl::ExecControl(), C4GameControlNetwork::ExecSyncControl(), C4Network2::Execute(), Execute(), C4GameControl::GetSyncCheck(), C4Network2::GetVote(), C4Network2::OpenVoteDialog(), PreExecute(), C4GameControl::Prepare(), PreRec(), C4Record::Rec(), C4GameControl::RemoveOldSyncChecks(), and C4Playback::Strip().
|
inline |
Definition at line 79 of file C4Control.h.
References C4PacketList::nextPkt(), and Pkts.
Referenced by Execute(), C4GameControl::GetSyncCheck(), C4Network2::GetVote(), C4Network2::OpenVoteDialog(), PreExecute(), PreRec(), C4GameControl::RemoveOldSyncChecks(), and C4Playback::Strip().
|
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().
bool C4Control::PreExecute | ( | ) | const |
Definition at line 90 of file C4Control.cpp.
References CID_First, firstPkt(), LogF(), nextPkt(), and C4ControlPacket::PreExecute().
Referenced by C4GameControlNetwork::CheckCompleteCtrl(), and C4GameControl::ExecControl().
void C4Control::PreRec | ( | C4Record * | pRecord | ) | const |
Definition at line 128 of file C4Control.cpp.
References firstPkt(), nextPkt(), and C4ControlPacket::PreRec().
Referenced by C4Record::Rec().
|
inline |
Definition at line 87 of file C4Control.h.
References Pkts, and C4PacketList::Remove().
|
inline |
Definition at line 84 of file C4Control.h.
References Pkts, and C4PacketList::Take().
|
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 71 of file C4Control.h.
Referenced by Add(), AddHead(), Append(), Clear(), CompileFunc(), Copy(), Delete(), firstPkt(), nextPkt(), Remove(), and Take().