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 ()=default
 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 {0}
int32_t game_x {KeyPos_None}
int32_t game_y {KeyPos_None}
int32_t vp_x {KeyPos_None}
int32_t vp_y {KeyPos_None}

Detailed Description

Definition at line 241 of file C4KeyboardInput.h.

Member Enumeration Documentation

anonymous enum

Definition at line 243 of file C4KeyboardInput.h.

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

Constructor & Destructor Documentation

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

Member Function Documentation

void C4KeyEventData::CompileFunc ( StdCompiler pComp)

Definition at line 543 of file C4KeyboardInput.cpp.

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

544 {
545  pComp->Value(iStrength);
546  pComp->Separator();
547  pComp->Value(game_x);
548  pComp->Separator();
549  pComp->Value(game_y);
550  pComp->Separator();
551  pComp->Value(vp_x);
552  pComp->Separator();
553  pComp->Value(vp_y);
554 }
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 C4KeyEventData::operator== ( const struct C4KeyEventData cmp) const

Definition at line 556 of file C4KeyboardInput.cpp.

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

557 {
558  return iStrength == cmp.iStrength
559  && game_x == cmp.game_x && game_y == cmp.game_y
560  && vp_x == cmp.vp_x && vp_y == cmp.vp_y;
562 }

Member Data Documentation

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