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:

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
int32_t iMovedFrame
bool fDownByUser

Detailed Description

Definition at line 359 of file C4PlayerControl.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 895 of file C4PlayerControl.cpp.

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

896 {
897  pComp->Value(DownState);
898  pComp->Separator();
899  pComp->Value(MovedState);
900  pComp->Separator();
901  pComp->Value(iDownFrame);
902  pComp->Separator();
903  pComp->Value(iMovedFrame);
904  pComp->Separator();
905  pComp->Value(fDownByUser);
906 }
virtual bool Separator(Sep eSep=SEP_SEP)
Definition: StdCompiler.h:129
void Value(const T &rStruct)
Definition: StdCompiler.h:171

Here is the call graph for this function:

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

Definition at line 366 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 908 of file C4PlayerControl.cpp.

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

909 {
910  return DownState == cmp.DownState && MovedState == cmp.MovedState && iDownFrame == cmp.iDownFrame && iMovedFrame == cmp.iMovedFrame && fDownByUser == cmp.fDownByUser;
911 }

Member Data Documentation

bool C4PlayerControl::CSync::ControlDownState::fDownByUser
int32_t C4PlayerControl::CSync::ControlDownState::iDownFrame
int32_t C4PlayerControl::CSync::ControlDownState::iMovedFrame
C4KeyEventData C4PlayerControl::CSync::ControlDownState::MovedState

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