OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4PlayerControl::CSync::ControlDownState Struct Reference

#include <C4PlayerControl.h>

Collaboration diagram for C4PlayerControl::CSync::ControlDownState:
[legend]

Public Member Functions

 ControlDownState (const C4KeyEventData &rDownState, int32_t iDownFrame, bool fDownByUser)
 
bool IsDown () const
 
 ControlDownState ()
 
void CompileFunc (StdCompiler *pComp)
 
bool operator== (const ControlDownState &cmp) const
 

Public Attributes

C4KeyEventData DownState
 
C4KeyEventData MovedState
 
int32_t iDownFrame {0}
 
int32_t iMovedFrame
 
bool fDownByUser {false}
 

Detailed Description

Definition at line 354 of file C4PlayerControl.h.

Constructor & Destructor Documentation

C4PlayerControl::CSync::ControlDownState::ControlDownState ( const C4KeyEventData rDownState,
int32_t  iDownFrame,
bool  fDownByUser 
)
inline
C4PlayerControl::CSync::ControlDownState::ControlDownState ( )
inline

Definition at line 363 of file C4PlayerControl.h.

Member Function Documentation

void C4PlayerControl::CSync::ControlDownState::CompileFunc ( StdCompiler pComp)

Definition at line 879 of file C4PlayerControl.cpp.

References DownState, fDownByUser, iDownFrame, iMovedFrame, MovedState, StdCompiler::Separator(), and StdCompiler::Value().

880 {
881  pComp->Value(DownState);
882  pComp->Separator();
883  pComp->Value(MovedState);
884  pComp->Separator();
885  pComp->Value(iDownFrame);
886  pComp->Separator();
887  pComp->Value(iMovedFrame);
888  pComp->Separator();
889  pComp->Value(fDownByUser);
890 }
virtual bool Separator(Sep eSep=SEP_SEP)
Definition: StdCompiler.h:119
void Value(const T &rStruct)
Definition: StdCompiler.h:161

Here is the call graph for this function:

bool C4PlayerControl::CSync::ControlDownState::IsDown ( ) const
inline

Definition at line 361 of file C4PlayerControl.h.

References C4KeyEventData::iStrength.

Referenced by C4PlayerControl::Execute(), and C4PlayerControl::CSync::ResetControlDownState().

Here is the caller graph for this function:

bool C4PlayerControl::CSync::ControlDownState::operator== ( const ControlDownState cmp) const

Definition at line 892 of file C4PlayerControl.cpp.

References DownState, fDownByUser, iDownFrame, iMovedFrame, and MovedState.

893 {
894  return DownState == cmp.DownState && MovedState == cmp.MovedState && iDownFrame == cmp.iDownFrame && iMovedFrame == cmp.iMovedFrame && fDownByUser == cmp.fDownByUser;
895 }

Member Data Documentation

bool C4PlayerControl::CSync::ControlDownState::fDownByUser {false}
int32_t C4PlayerControl::CSync::ControlDownState::iDownFrame {0}
int32_t C4PlayerControl::CSync::ControlDownState::iMovedFrame
C4KeyEventData C4PlayerControl::CSync::ControlDownState::MovedState

The documentation for this struct was generated from the following files: