#include <K3dBlockBuild.h>
Inheritance diagram for K3dBlockBuild:
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 | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. |
Definition at line 40 of file K3dBlockBuild.h.
K3dBlockBuild::K3dBlockBuild | ( | K3dGameData * | _pGameData | ) |
Constructor.
_pGameData | Pointer to global game data |
Definition at line 39 of file K3dBlockBuild.cpp.
References m_pGameData.
K3dBlockBuild::~K3dBlockBuild | ( | void | ) |
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().
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().