OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4KeyEventData Struct Reference

#include <C4KeyboardInput.h>

Public Types

enum  { KeyPos_None = 0x7fffff }
 

Public Member Functions

 C4KeyEventData ()
 
 C4KeyEventData (int32_t iStrength, int32_t game_x, int32_t game_y, int32_t vp_x, int32_t vp_y)
 
void CompileFunc (StdCompiler *pComp)
 
bool operator== (const struct C4KeyEventData &cmp) const
 

Public Attributes

int32_t iStrength
 
int32_t game_x
 
int32_t game_y
 
int32_t vp_x
 
int32_t vp_y
 

Detailed Description

Definition at line 248 of file C4KeyboardInput.h.

Member Enumeration Documentation

anonymous enum
Enumerator
KeyPos_None 

Definition at line 250 of file C4KeyboardInput.h.

250 { KeyPos_None = 0x7fffff }; // value used to denote invalid/none key positions

Constructor & Destructor Documentation

C4KeyEventData::C4KeyEventData ( )
inline
C4KeyEventData::C4KeyEventData ( int32_t  iStrength,
int32_t  game_x,
int32_t  game_y,
int32_t  vp_x,
int32_t  vp_y 
)
inline

Member Function Documentation

void C4KeyEventData::CompileFunc ( StdCompiler pComp)

Definition at line 548 of file C4KeyboardInput.cpp.

References game_x, game_y, iStrength, StdCompiler::Separator(), StdCompiler::Value(), vp_x, and vp_y.

549 {
550  pComp->Value(iStrength);
551  pComp->Separator();
552  pComp->Value(game_x);
553  pComp->Separator();
554  pComp->Value(game_y);
555  pComp->Separator();
556  pComp->Value(vp_x);
557  pComp->Separator();
558  pComp->Value(vp_y);
559 }
virtual bool Separator(Sep eSep=SEP_SEP)
Definition: StdCompiler.h:129
void Value(const T &rStruct)
Definition: StdCompiler.h:170

Here is the call graph for this function:

bool C4KeyEventData::operator== ( const struct C4KeyEventData cmp) const

Definition at line 561 of file C4KeyboardInput.cpp.

References game_x, game_y, iStrength, vp_x, and vp_y.

562 {
563  return iStrength == cmp.iStrength
564  && game_x == cmp.game_x && game_y == cmp.game_y
565  && vp_x == cmp.vp_x && vp_y == cmp.vp_y;
566 
567 }

Member Data Documentation

int32_t C4KeyEventData::game_x
int32_t C4KeyEventData::game_y

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