K3dBlockBuild Class Reference

#include <K3dBlockBuild.h>

Inheritance diagram for K3dBlockBuild:

K3dObjectBuild K3dMngGeometry K3dMngSystem K3dScene List of all members.

Public Member Functions

 K3dBlockBuild (K3dGameData *_pGameData)
 Constructor.
 ~K3dBlockBuild (void)
void LoadBlocks ()
 Load blocks and add to global data.
void DeleteBlocks ()
 Delete all blocks from global data.

Private Attributes

K3dGameDatam_pGameData
 Global game data, data centered game system.

Detailed Description

Definition at line 40 of file K3dBlockBuild.h.


Constructor & Destructor Documentation

K3dBlockBuild::K3dBlockBuild ( K3dGameData _pGameData  ) 

Constructor.

Parameters:
_pGameData Pointer to global game data
See also:
K3dGameData

Definition at line 39 of file K3dBlockBuild.cpp.

References m_pGameData.

K3dBlockBuild::~K3dBlockBuild ( void   ) 

Definition at line 44 of file K3dBlockBuild.cpp.

References DeleteBlocks().


Member Function Documentation

void K3dBlockBuild::LoadBlocks (  ) 

Load blocks and add to global data.

Definition at line 50 of file K3dBlockBuild.cpp.

References K3dString::AddNumber(), K3dGameData::GetBlockObjSP(), K3dSceneData::GetLua(), K3dSafePointer< _T >::GetNum(), K3dString::GetString(), K_STR_BLOCK, K_STR_FIRST_FACE, K_STR_NAME, K_STR_NUM_BLOCKS, K_STR_NUM_FACES, K3dLua::LuaError(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pGameData, and K3dSafePointer< _T >::New().

Referenced by K3dMngGeometry::InitMngGeometry().

void K3dBlockBuild::DeleteBlocks (  ) 

Delete all blocks from global data.

Definition at line 94 of file K3dBlockBuild.cpp.

References K3dSafePointer< _T >::Delete(), K3dSafePointer< _T >::Get(), K3dGameData::GetBlockObjSP(), K3dSafePointer< _T >::GetNum(), and m_pGameData.

Referenced by K3dMngGeometry::DeleteMngGeometry(), and ~K3dBlockBuild().


Member Data Documentation

K3dGameData* K3dBlockBuild::m_pGameData [private]

Global game data, data centered game system.

Reimplemented in K3dObjectBuild, K3dScene, K3dMngGeometry, and K3dMngSystem.

Definition at line 42 of file K3dBlockBuild.h.

Referenced by DeleteBlocks(), K3dBlockBuild(), and LoadBlocks().


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