K3dMenu Class Reference

#include <K3dMenu.h>

Inheritance diagram for K3dMenu:

K3dDir K3dGui K3dMngGui K3dMngGraphics K3dMngSystem K3dScene List of all members.

Public Member Functions

 K3dMenu (K3dGameData *_pGameData)
 ~K3dMenu ()
bool ButtonIsPressed (const int _iButtonId)
 Check if button is pressed.
void ShowFileListBox (const int _iListModelId, const char *_strPath)
 Show list box with path files.
bool LoadMapFromListBox (const int _iListBoxId, const char *_strPath)
 Load selected test in main menu list box.

Private Attributes

 Data centered game system.

Detailed Description

Definition at line 40 of file K3dMenu.h.

Constructor & Destructor Documentation

K3dMenu::K3dMenu ( K3dGameData _pGameData  ) 

Definition at line 42 of file K3dMenu.cpp.

References m_pGameData.

K3dMenu::~K3dMenu (  ) 

Definition at line 49 of file K3dMenu.cpp.

Member Function Documentation

bool K3dMenu::ButtonIsPressed ( const int  _iButtonId  ) 

Check if button is pressed.

_iButtonId Button index
Return values:
bool True if button is pressed

Definition at line 67 of file K3dMenu.cpp.

References K3dGui::GetGuiButton().

Referenced by K3dVM::ButtonIsPressed().

void K3dMenu::ShowFileListBox ( const int  _iListModelId,
const char *  _strPath 

Show list box with path files.

_iListModelId List model index
_strPath Files path

Definition at line 92 of file K3dMenu.cpp.

References K3dGuiListModel::AddElement(), K3dGuiListModel::DeleteElements(), K3dDir::GetDirFileArray(), K3dGui::GetGuiListModel(), K3dSceneData::GetPath(), K3dString::GetString(), K3dString::GetStrTok(), K_PATH_APP, m_pGameData, and K3dDir::OpenDirectory().

Referenced by K3dVM::ShowFileListBox().

bool K3dMenu::LoadMapFromListBox ( const int  _iListBoxId,
const char *  _strPath 

Load selected test in main menu list box.

Definition at line 134 of file K3dMenu.cpp.

References K3dGui::GetGuiListBox(), K3dSceneData::GetScene(), K3dString::GetString(), K_STR_DOT_LUA, K3dScene::LoadNewScript(), and m_pGameData.

Referenced by K3dVM::LoadMapFromListBox().

Member Data Documentation

K3dGameData* K3dMenu::m_pGameData [private]

Data centered game system.

Reimplemented from K3dGui.

Reimplemented in K3dScene, K3dMngGraphics, K3dMngGui, and K3dMngSystem.

Definition at line 42 of file K3dMenu.h.

Referenced by K3dMenu(), LoadMapFromListBox(), and ShowFileListBox().

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