#include <C4PlayerControl.h>
Classes | |
struct | ControlDownState |
Public Types | |
typedef std::vector< ControlDownState > | DownStateVec |
typedef std::vector< int32_t > | DisableStateVec |
Public Member Functions | |
const ControlDownState * | GetControlDownState (int32_t iControl) const |
int32_t | GetControlDisabled (int32_t iControl) const |
bool | IsControlDisabled (int32_t iControl) const |
void | SetControlDownState (int32_t iControl, const C4KeyEventData &rDownState, int32_t iDownFrame, bool fDownByUser) |
void | SetControlMovedState (int32_t iControl, const C4KeyEventData &rMovedState, int32_t iMovedFrame) |
void | ResetControlDownState (int32_t iControl) |
bool | SetControlDisabled (int32_t iControl, int32_t iVal) |
void | InitDefaults (const C4PlayerControlDefs &ControlDefs) |
void | Clear () |
void | CompileFunc (StdCompiler *pComp) |
bool | operator== (const CSync &cmp) const |
Public Attributes | |
DownStateVec | ControlDownStates |
DisableStateVec | ControlDisableStates |
Definition at line 351 of file C4PlayerControl.h.
typedef std::vector<int32_t> C4PlayerControl::CSync::DisableStateVec |
Definition at line 368 of file C4PlayerControl.h.
typedef std::vector<ControlDownState> C4PlayerControl::CSync::DownStateVec |
Definition at line 366 of file C4PlayerControl.h.
void C4PlayerControl::CSync::Clear | ( | ) |
Definition at line 965 of file C4PlayerControl.cpp.
References ControlDisableStates, and ControlDownStates.
Referenced by C4PlayerControl::Clear().
void C4PlayerControl::CSync::CompileFunc | ( | StdCompiler * | pComp | ) |
Definition at line 971 of file C4PlayerControl.cpp.
References ControlDisableStates, ControlDownStates, mkNamingAdapt(), mkSTLContainerAdapt(), and StdCompiler::Value().
int32_t C4PlayerControl::CSync::GetControlDisabled | ( | int32_t | iControl | ) | const |
Definition at line 902 of file C4PlayerControl.cpp.
References ControlDisableStates.
Referenced by IsControlDisabled().
const C4PlayerControl::CSync::ControlDownState * C4PlayerControl::CSync::GetControlDownState | ( | int32_t | iControl | ) | const |
Definition at line 895 of file C4PlayerControl.cpp.
References ControlDownStates.
Referenced by ResetControlDownState().
void C4PlayerControl::CSync::InitDefaults | ( | const C4PlayerControlDefs & | ControlDefs | ) |
Definition at line 954 of file C4PlayerControl.cpp.
References C4PlayerControlDefs::GetControlByIndex(), C4PlayerControlDef::IsDefaultDisabled(), and SetControlDisabled().
Referenced by C4PlayerControl::CompileFunc().
|
inline |
Definition at line 373 of file C4PlayerControl.h.
References GetControlDisabled().
bool C4PlayerControl::CSync::operator== | ( | const CSync & | cmp | ) | const |
Definition at line 977 of file C4PlayerControl.cpp.
References ControlDisableStates, and ControlDownStates.
void C4PlayerControl::CSync::ResetControlDownState | ( | int32_t | iControl | ) |
Definition at line 941 of file C4PlayerControl.cpp.
References C4PlayerControl::CSync::ControlDownState::DownState, GetControlDownState(), C4PlayerControl::CSync::ControlDownState::IsDown(), C4KeyEventData::iStrength, SetControlDownState(), and SetControlMovedState().
Referenced by SetControlDisabled().
bool C4PlayerControl::CSync::SetControlDisabled | ( | int32_t | iControl, |
int32_t | iVal | ||
) |
Definition at line 930 of file C4PlayerControl.cpp.
References ControlDisableStates, and ResetControlDownState().
Referenced by InitDefaults().
void C4PlayerControl::CSync::SetControlDownState | ( | int32_t | iControl, |
const C4KeyEventData & | rDownState, | ||
int32_t | iDownFrame, | ||
bool | fDownByUser | ||
) |
Definition at line 909 of file C4PlayerControl.cpp.
References ControlDownStates, C4PlayerControl::CSync::ControlDownState::DownState, C4PlayerControl::CSync::ControlDownState::fDownByUser, and C4PlayerControl::CSync::ControlDownState::iDownFrame.
Referenced by ResetControlDownState().
void C4PlayerControl::CSync::SetControlMovedState | ( | int32_t | iControl, |
const C4KeyEventData & | rMovedState, | ||
int32_t | iMovedFrame | ||
) |
Definition at line 920 of file C4PlayerControl.cpp.
References ControlDownStates, C4PlayerControl::CSync::ControlDownState::iMovedFrame, and C4PlayerControl::CSync::ControlDownState::MovedState.
Referenced by ResetControlDownState().
DisableStateVec C4PlayerControl::CSync::ControlDisableStates |
Definition at line 369 of file C4PlayerControl.h.
Referenced by Clear(), CompileFunc(), GetControlDisabled(), operator==(), and SetControlDisabled().
DownStateVec C4PlayerControl::CSync::ControlDownStates |
Definition at line 367 of file C4PlayerControl.h.
Referenced by Clear(), CompileFunc(), GetControlDownState(), operator==(), SetControlDownState(), and SetControlMovedState().