K3dKeyMapBuild Class Reference

#include <K3dKeyMapBuild.h>

Inheritance diagram for K3dKeyMapBuild:

K3dMngControl K3dMngSystem K3dScene List of all members.

Public Member Functions

 K3dKeyMapBuild (K3dGameData *_pGameData)
 ~K3dKeyMapBuild ()
void LoadKeyMap ()
 Load key map information from K3dEngine file.

Private Member Functions

void CheckLoadError (std::string _strLoad, K3dString _strFind)
 Test, if string is correctly loaded from lua file.
void GenerateKeyMap (std::string _strKeyMap, std::string _strActionMap)
 Find from m_tActionTransferMap and m_tKeyTransferMap antion and key indexes and add to the final key map.

Private Attributes

K3dGameDatam_pGameData
 Global game data, data centered game system.
TStrActionMap m_tActionTransferMap
TStrIntMap m_tKeyTransferMap
bool m_bIsKeyMapLoaded
 Is key map loaded?

Detailed Description

Definition at line 54 of file K3dKeyMapBuild.h.


Constructor & Destructor Documentation

K3dKeyMapBuild::K3dKeyMapBuild ( K3dGameData _pGameData  )  [inline]

Definition at line 74 of file K3dKeyMapBuild.h.

References K_GO_BACKWARD, K_GO_DOWN, K_GO_FORWARD, K_GO_UP, K_LURCH_LEFT, K_LURCH_RIGHT, K_STR_1, K_STR_2, K_STR_3, K_STR_4, K_STR_5, K_STR_6, K_STR_7, K_STR_8, K_STR_9, K_STR_A, K_STR_B, K_STR_BACKSPACE, K_STR_C, K_STR_CONSOLE, K_STR_D, K_STR_DELETE, K_STR_DOWN, K_STR_E, K_STR_END, K_STR_ENTER, K_STR_ESC, K_STR_F, K_STR_F1, K_STR_F10, K_STR_F11, K_STR_F12, K_STR_F2, K_STR_F3, K_STR_F4, K_STR_F5, K_STR_F6, K_STR_F7, K_STR_F8, K_STR_F9, K_STR_G, K_STR_GO_BACKWARD, K_STR_GO_DOWN, K_STR_GO_FORWARD, K_STR_GO_UP, K_STR_H, K_STR_HOME, K_STR_I, K_STR_INSERT, K_STR_J, K_STR_K, K_STR_L, K_STR_LALT, K_STR_LCTRL, K_STR_LEFT, K_STR_LSHIFT, K_STR_LURCH_LEFT, K_STR_LURCH_RIGHT, K_STR_M, K_STR_MINUS, K_STR_N, K_STR_O, K_STR_P, K_STR_PAGE_DOWN, K_STR_PAGE_UP, K_STR_PLUS, K_STR_Q, K_STR_R, K_STR_RALT, K_STR_RCTRL, K_STR_RIGHT, K_STR_RSHIFT, K_STR_S, K_STR_SPACE, K_STR_STRAFE_LEFT, K_STR_STRAFE_RIGHT, K_STR_T, K_STR_TURN_DOWN, K_STR_TURN_LEFT, K_STR_TURN_RIGHT, K_STR_TURN_UP, K_STR_U, K_STR_UP, K_STR_V, K_STR_W, K_STR_X, K_STR_Y, K_STR_Z, K_STR_ZERO, K_STRAFE_LEFT, K_STRAFE_RIGHT, K_TURN_DOWN, K_TURN_LEFT, K_TURN_RIGHT, K_TURN_UP, m_bIsKeyMapLoaded, m_pGameData, m_tActionTransferMap, and m_tKeyTransferMap.

K3dKeyMapBuild::~K3dKeyMapBuild (  )  [inline]

Definition at line 168 of file K3dKeyMapBuild.h.

References m_tActionTransferMap, and m_tKeyTransferMap.


Member Function Documentation

void K3dKeyMapBuild::CheckLoadError ( std::string  _strLoad,
K3dString  _strFind 
) [inline, private]

Test, if string is correctly loaded from lua file.

Parameters:
_strLoad Loaded string
_strFind Find string

Definition at line 64 of file K3dKeyMapBuild.h.

References K3dString::GetString().

Referenced by LoadKeyMap().

void K3dKeyMapBuild::GenerateKeyMap ( std::string  _strKeyMap,
std::string  _strActionMap 
) [private]

Find from m_tActionTransferMap and m_tKeyTransferMap antion and key indexes and add to the final key map.

Parameters:
_strKeyMap Key map string
_strActionMap Action map string

Definition at line 38 of file K3dKeyMapBuild.cpp.

References K3dSceneData::GetKeyMap(), K3dKeyMap::InsertKeyMap(), K_NUM_ACTION, m_pGameData, m_tActionTransferMap, and m_tKeyTransferMap.

Referenced by LoadKeyMap().

void K3dKeyMapBuild::LoadKeyMap (  ) 

Load key map information from K3dEngine file.

Definition at line 71 of file K3dKeyMapBuild.cpp.

References CheckLoadError(), GenerateKeyMap(), K3dSceneData::GetLua(), K3dString::GetString(), K_STR_GO_BACKWARD, K_STR_GO_DOWN, K_STR_GO_FORWARD, K_STR_GO_UP, K_STR_KEY_MAP, K_STR_LURCH_LEFT, K_STR_LURCH_RIGHT, K_STR_STRAFE_LEFT, K_STR_STRAFE_RIGHT, K_STR_TURN_DOWN, K_STR_TURN_LEFT, K_STR_TURN_RIGHT, K_STR_TURN_UP, K3dLua::LuaError(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsTable(), m_bIsKeyMapLoaded, and m_pGameData.

Referenced by K3dMngControl::InitMngControl().


Member Data Documentation

K3dGameData* K3dKeyMapBuild::m_pGameData [private]

Global game data, data centered game system.

Reimplemented in K3dScene, K3dMngControl, and K3dMngSystem.

Definition at line 56 of file K3dKeyMapBuild.h.

Referenced by GenerateKeyMap(), K3dKeyMapBuild(), and LoadKeyMap().

TStrActionMap K3dKeyMapBuild::m_tActionTransferMap [private]

Definition at line 57 of file K3dKeyMapBuild.h.

Referenced by GenerateKeyMap(), K3dKeyMapBuild(), and ~K3dKeyMapBuild().

TStrIntMap K3dKeyMapBuild::m_tKeyTransferMap [private]

Definition at line 58 of file K3dKeyMapBuild.h.

Referenced by GenerateKeyMap(), K3dKeyMapBuild(), and ~K3dKeyMapBuild().

bool K3dKeyMapBuild::m_bIsKeyMapLoaded [private]

Is key map loaded?

Definition at line 59 of file K3dKeyMapBuild.h.

Referenced by K3dKeyMapBuild(), and LoadKeyMap().


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