#include <C4Control.h>
Public Member Functions | |
C4ControlEMMoveObject () | |
C4ControlEMMoveObject (C4ControlEMObjectAction eAction, C4Real tx, C4Real ty, C4Object *pTargetObj, int32_t iObjectNum=0, int32_t *pObjects=nullptr, const char *szScript=nullptr, bool drag_finished=false) | |
~C4ControlEMMoveObject () 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 |
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) |
Static Public Member Functions | |
static C4ControlEMMoveObject * | CreateObject (const C4ID &id, C4Real x, C4Real y, C4Object *container) |
Protected Attributes | |
C4ControlEMObjectAction | eAction {EMMO_Move} |
C4Real | tx |
C4Real | ty |
int32_t | iTargetObj {0} |
int32_t | iObjectNum {0} |
int32_t * | pObjects {nullptr} |
StdStrBuf | StringParam |
bool | drag_finished {false} |
int32_t | iByClient |
Definition at line 453 of file C4Control.h.
|
inline |
Definition at line 456 of file C4Control.h.
Referenced by CreateObject().
C4ControlEMMoveObject::C4ControlEMMoveObject | ( | C4ControlEMObjectAction | eAction, |
C4Real | tx, | ||
C4Real | ty, | ||
C4Object * | pTargetObj, | ||
int32_t | iObjectNum = 0 , |
||
int32_t * | pObjects = nullptr , |
||
const char * | szScript = nullptr , |
||
bool | drag_finished = false |
||
) |
Definition at line 1206 of file C4Control.cpp.
|
override |
Definition at line 1224 of file C4Control.cpp.
References pObjects.
|
overridevirtualinherited |
Implements C4PacketBase.
Definition at line 70 of file C4Control.cpp.
References C4ControlPacket::iByClient, mkIntPackAdapt(), mkNamingAdapt(), and StdCompiler::Value().
|
static |
Definition at line 1214 of file C4Control.cpp.
References C4ControlEMMoveObject(), EMMO_Create, and StartSoundEffect().
Referenced by C4EditCursor::ApplyCreateObject(), and C4Game::DropDef().
|
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().
|
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().
|
inherited |
Definition at line 65 of file C4Control.cpp.
References C4ControlPacket::iByClient.
|
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 468 of file C4Control.h.
|
protected |
Definition at line 462 of file C4Control.h.
|
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 465 of file C4Control.h.
|
protected |
Definition at line 464 of file C4Control.h.
|
protected |
Definition at line 466 of file C4Control.h.
Referenced by ~C4ControlEMMoveObject().
|
protected |
Definition at line 467 of file C4Control.h.
|
protected |
Definition at line 463 of file C4Control.h.
|
protected |
Definition at line 463 of file C4Control.h.