K3dKeyMap Class Reference

#include <K3dKeyMap.h>

Inheritance diagram for K3dKeyMap:

K3dKeyboard K3dScene List of all members.

Public Member Functions

 K3dKeyMap (K3dGameData *_pGameData)
 ~K3dKeyMap ()
void InsertKeyMap (EKeyMapAction _eAction, int _iSDLKey)
 Inser action key and SDL index key to the key map.
bool IsKeyPressed (EKeyMapAction _eKey)
 Test if is key pressed.
void DeleteKeyMap ()
 Delete key mapK3dKeyboard().
EKeyMapAction FindKeyMapAction (const int _iVal)
 Find Action key map from TKeyMap.
int FindMapValue (EKeyMapAction _eAction)
 Find value from TKeyMap.

Private Attributes

K3dGameDatam_pGameData
 Global game data, data centered game system.
TKeyMap m_tKeyMap
 Key map.

Detailed Description

Definition at line 60 of file K3dKeyMap.h.


Constructor & Destructor Documentation

K3dKeyMap::K3dKeyMap ( K3dGameData _pGameData  ) 

Definition at line 34 of file K3dKeyMap.cpp.

References m_pGameData, and K3dSceneData::SetKeyMap().

K3dKeyMap::~K3dKeyMap (  ) 

Definition at line 41 of file K3dKeyMap.cpp.

References DeleteKeyMap().


Member Function Documentation

void K3dKeyMap::InsertKeyMap ( EKeyMapAction  _eAction,
int  _iSDLKey 
) [inline]

Inser action key and SDL index key to the key map.

Definition at line 69 of file K3dKeyMap.h.

References m_tKeyMap.

Referenced by K3dKeyMapBuild::GenerateKeyMap().

bool K3dKeyMap::IsKeyPressed ( EKeyMapAction  _eKey  ) 

Test if is key pressed.

Definition at line 47 of file K3dKeyMap.cpp.

References K3dKeyboard::IsSdlKeyPressed(), and m_tKeyMap.

Referenced by K3dCamera::UpdateCamera().

void K3dKeyMap::DeleteKeyMap (  )  [inline]

Delete key mapK3dKeyboard().

Definition at line 76 of file K3dKeyMap.h.

References m_tKeyMap.

Referenced by ~K3dKeyMap().

EKeyMapAction K3dKeyMap::FindKeyMapAction ( const int  _iVal  ) 

Find Action key map from TKeyMap.

Parameters:
_iVal Map value

Definition at line 54 of file K3dKeyMap.cpp.

References K3dString::GetString(), K_NUM_ACTION, m_tKeyMap, and K3dString::SetNum().

int K3dKeyMap::FindMapValue ( EKeyMapAction  _eAction  )  [inline]

Find value from TKeyMap.

Parameters:
_eAction Key map action index

Definition at line 84 of file K3dKeyMap.h.

References m_tKeyMap.


Member Data Documentation

K3dGameData* K3dKeyMap::m_pGameData [private]

Global game data, data centered game system.

Reimplemented in K3dScene.

Definition at line 62 of file K3dKeyMap.h.

Referenced by K3dKeyMap().

TKeyMap K3dKeyMap::m_tKeyMap [private]

Key map.

Definition at line 63 of file K3dKeyMap.h.

Referenced by DeleteKeyMap(), FindKeyMapAction(), FindMapValue(), InsertKeyMap(), and IsKeyPressed().


The documentation for this class was generated from the following files:
Generated on Thu Aug 16 23:53:32 2007 for K3dEngine by  doxygen 1.5.0