#include <C4PlayerControl.h>
Public Types | |
enum | CoordinateSpace { COS_Game = 0 , COS_Viewport = 1 } |
enum | Actions { CDA_None = 0 , CDA_Script , CDA_Menu , CDA_MenuOK , CDA_MenuCancel , CDA_MenuLeft , CDA_MenuUp , CDA_MenuRight , CDA_MenuDown , CDA_ObjectMenuTextComplete , CDA_ObjectMenuOK , CDA_ObjectMenuOKAll , CDA_ObjectMenuSelect , CDA_ObjectMenuCancel , CDA_ObjectMenuLeft , CDA_ObjectMenuUp , CDA_ObjectMenuRight , CDA_ObjectMenuDown , CDA_ZoomIn , CDA_ZoomOut } |
Public Member Functions | |
C4PlayerControlDef () | |
~C4PlayerControlDef ()=default | |
void | CompileFunc (StdCompiler *pComp) |
const char * | GetIdentifier () const |
const char * | GetGUIName () const |
const char * | GetGUIDesc () const |
Actions | GetAction () const |
bool | IsHoldKey () const |
C4ID | GetExtraData () const |
bool | IsGlobal () const |
int32_t | GetRepeatDelay () const |
int32_t | GetInitialRepeatDelay () const |
bool | IsDefaultDisabled () const |
CoordinateSpace | GetCoordinateSpace () const |
bool | IsSendCursorPos () const |
bool | operator== (const C4PlayerControlDef &cmp) const |
bool | Execute (bool fUp, const C4KeyEventData &rKeyExtraData) |
bool | IsSyncObjectMenuControl () const |
bool | IsAsync () const |
bool | IsSync () const |
bool | IsValid () const |
Definition at line 29 of file C4PlayerControl.h.
Definition at line 37 of file C4PlayerControl.h.
|
inline |
Definition at line 63 of file C4PlayerControl.h.
|
default |
void C4PlayerControlDef::CompileFunc | ( | StdCompiler * | pComp | ) |
Definition at line 39 of file C4PlayerControl.cpp.
References CDA_Menu, CDA_MenuCancel, CDA_MenuDown, CDA_MenuLeft, CDA_MenuOK, CDA_MenuRight, CDA_MenuUp, CDA_None, CDA_ObjectMenuCancel, CDA_ObjectMenuDown, CDA_ObjectMenuLeft, CDA_ObjectMenuOK, CDA_ObjectMenuOKAll, CDA_ObjectMenuRight, CDA_ObjectMenuSelect, CDA_ObjectMenuTextComplete, CDA_ObjectMenuUp, CDA_Script, CDA_ZoomIn, CDA_ZoomOut, COS_Game, COS_Viewport, StdCompiler::excNotFound(), mkNamingAdapt(), mkParAdapt(), StdCompiler::Name(), StdCompiler::NameEnd(), C4ID::None, StdCompiler::RCT_All, StdCompiler::RCT_Idtf, and StdCompiler::Value().
bool C4PlayerControlDef::Execute | ( | bool | fUp, |
const C4KeyEventData & | rKeyExtraData | ||
) |
|
inline |
Definition at line 73 of file C4PlayerControl.h.
Referenced by C4PlayerControl::Execute().
|
inline |
Definition at line 80 of file C4PlayerControl.h.
|
inline |
Definition at line 75 of file C4PlayerControl.h.
Referenced by C4PlayerControl::Execute().
|
inline |
Definition at line 72 of file C4PlayerControl.h.
References StdStrBuf::getData().
Referenced by C4PlayerControlAssignment::GetGUIDesc().
|
inline |
Definition at line 71 of file C4PlayerControl.h.
References StdStrBuf::getData().
Referenced by C4PlayerControlAssignment::GetGUIName().
|
inline |
Definition at line 70 of file C4PlayerControl.h.
References StdStrBuf::getData().
|
inline |
Definition at line 78 of file C4PlayerControl.h.
Referenced by C4PlayerControl::Execute().
|
inline |
Definition at line 77 of file C4PlayerControl.h.
Referenced by C4PlayerControl::Execute().
|
inline |
Definition at line 87 of file C4PlayerControl.h.
References CDA_None, CDA_Script, and IsSyncObjectMenuControl().
|
inline |
Definition at line 79 of file C4PlayerControl.h.
Referenced by C4PlayerControl::CSync::InitDefaults().
|
inline |
Definition at line 76 of file C4PlayerControl.h.
|
inline |
Definition at line 74 of file C4PlayerControl.h.
Referenced by C4PlayerControlAssignmentSet::GetAssignmentsByKey(), and C4PlayerControlAssignmentSet::GetTriggerKeys().
|
inline |
Definition at line 81 of file C4PlayerControl.h.
|
inline |
Definition at line 88 of file C4PlayerControl.h.
References CDA_Script, and IsSyncObjectMenuControl().
Referenced by C4PlayerControl::ExecuteControlPacket().
|
inline |
Definition at line 86 of file C4PlayerControl.h.
References CDA_ObjectMenuDown, and CDA_ObjectMenuOK.
Referenced by IsAsync(), and IsSync().
|
inline |
bool C4PlayerControlDef::operator== | ( | const C4PlayerControlDef & | cmp | ) | const |
Definition at line 87 of file C4PlayerControl.cpp.