#include <C4Control.h>
Public Member Functions | |
| C4ControlSyncCheck () | |
| void | Set () |
| int32_t | getFrame () const |
| bool | Sync () const override |
| int32_t | getByClient () const |
| bool | LocalControl () const |
| bool | HostControl () const |
| void | SetByClient (int32_t iByClient) |
| virtual bool | PreExecute () const |
| virtual void | Execute () const =0 |
| virtual void | PreRec (C4Record *pRecord) |
| virtual bool | Lobby () 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) |
Static Protected Member Functions | |
| static int32_t | GetAllCrewPosX () |
Protected Attributes | |
| int32_t | Frame |
| int32_t | ControlTick |
| int32_t | RandomCount |
| int32_t | AllCrewPosX |
| int32_t | PXSCount |
| int32_t | MassMoverIndex |
| int32_t | ObjectCount |
| int32_t | ObjectEnumerationIndex |
| int32_t | SectShapeSum |
| int32_t | iByClient |
Definition at line 317 of file C4Control.h.
|
default |
|
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().
|
staticprotected |
Definition at line 759 of file C4Control.cpp.
References C4Player::Crew, C4PlayerList::First, C4Object::fix_x, fixtoi(), C4Player::Next, and Players.
Referenced by Set().
|
inlineinherited |
Definition at line 42 of file C4Control.h.
References C4ControlPacket::iByClient.
Referenced by C4Network2::GetVote(), C4GameControlNetwork::HandlePacket(), and C4Network2::OpenVoteDialog().
|
inline |
Definition at line 333 of file C4Control.h.
References Frame.
Referenced by C4GameControl::GetSyncCheck(), and C4GameControl::RemoveOldSyncChecks().
|
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().
|
inlinevirtualinherited |
Reimplemented in C4ControlJoinPlayer.
Definition at line 48 of file C4Control.h.
Referenced by C4GameControl::ExecControlPacket(), and C4Control::PreExecute().
|
inlinevirtualinherited |
Reimplemented in C4ControlJoinPlayer.
Definition at line 50 of file C4Control.h.
Referenced by C4Control::PreRec(), and C4Record::Rec().
| void C4ControlSyncCheck::Set | ( | ) |
Definition at line 746 of file C4Control.cpp.
References AllCrewPosX, Control, ControlTick, C4GameControl::ControlTick, C4PXSSystem::Count, C4MassMoverSet::CreatePtr, Frame, C4Game::FrameCounter, Game, GetAllCrewPosX(), C4PropListNumbered::GetEnumerationIndex(), C4LSectors::getShapeSum(), MassMover, MassMoverIndex, ObjectCount, C4ObjectList::ObjectCount(), ObjectEnumerationIndex, Objects, PXS, PXSCount, RandomCount, C4GameObjects::Sectors, and SectShapeSum.
Referenced by C4GameControl::DoSyncCheck().
|
inherited |
Definition at line 65 of file C4Control.cpp.
References C4ControlPacket::iByClient.
|
inlineoverridevirtual |
Reimplemented from C4ControlPacket.
Definition at line 334 of file C4Control.h.
|
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 325 of file C4Control.h.
Referenced by Set().
|
protected |
Definition at line 323 of file C4Control.h.
Referenced by Set().
|
protected |
Definition at line 322 of file C4Control.h.
Referenced by getFrame(), and Set().
|
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 327 of file C4Control.h.
Referenced by Set().
|
protected |
Definition at line 328 of file C4Control.h.
Referenced by Set().
|
protected |
Definition at line 329 of file C4Control.h.
Referenced by Set().
|
protected |
Definition at line 326 of file C4Control.h.
Referenced by Set().
|
protected |
Definition at line 324 of file C4Control.h.
Referenced by Set().
|
protected |
Definition at line 330 of file C4Control.h.
Referenced by Set().