K3dSphereBuild Class Reference

#include <K3dSphereBuild.h>

Inheritance diagram for K3dSphereBuild:

K3dObjectBuild K3dMngGeometry K3dMngSystem K3dScene List of all members.

Public Member Functions

 K3dSphereBuild (K3dGameData *_pGameData)
 Constructor.
 ~K3dSphereBuild (void)
void LoadSpheres ()
 Load spheres from map file.
void BuildSpheres ()
 Build spheres from block objects.
void DeleteSpheres ()
 Delete all spheres from global game data.
K3dSphereObjCreateNewSphereObj ()
 Create new sphere object and add this to the gloabal data.

Private Attributes

K3dGameDatam_pGameData
 Global game data, data centered game system.
K3dVector3Buildm_pVector3Build
 Pointer to 3d vector builder.
K3dColor3Buildm_pColor3Build
 Pointer to 3d color builder.
K3dMatrixBuildm_pMatrixBuild
 Pointer to matrix builder.
K3dTextureBuildm_pTextureBuild
 Pointer to texture builder.

Detailed Description

Definition at line 45 of file K3dSphereBuild.h.


Constructor & Destructor Documentation

K3dSphereBuild::K3dSphereBuild ( K3dGameData _pGameData  ) 

Constructor.

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

Definition at line 38 of file K3dSphereBuild.cpp.

References K3dSceneData::GetColor3Build(), K3dSceneData::GetMatrixBuild(), K3dSceneData::GetTextureBuild(), K3dSceneData::GetVector3Build(), m_pColor3Build, m_pGameData, m_pMatrixBuild, m_pTextureBuild, m_pVector3Build, and K3dSceneData::SetSphereBuild().

K3dSphereBuild::~K3dSphereBuild ( void   ) 

Definition at line 49 of file K3dSphereBuild.cpp.

References DeleteSpheres().


Member Function Documentation

void K3dSphereBuild::LoadSpheres (  ) 

Load spheres from map file.

Definition at line 73 of file K3dSphereBuild.cpp.

References K3dString::AddNumber(), CreateNewSphereObj(), K3dTextureBuild::FindTextureId(), K3dSafePointer< _T >::Get(), K3dTexture::GetId(), K3dSceneData::GetLua(), K3dString::GetString(), K3dGameData::GetTextureObjSP(), K_STR_B, K_STR_G, K_STR_NAME, K_STR_NUM_SLICES, K_STR_NUM_SPHERES, K_STR_NUM_STACKS, K_STR_POS_X, K_STR_POS_Y, K_STR_POS_Z, K_STR_R, K_STR_RADIUS, K_STR_ROT_X, K_STR_ROT_Y, K_STR_ROT_Z, K_STR_SPHERE, K_STR_TEXTURE_TABLE, K3dLua::LuaError(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), m_pGameData, and m_pTextureBuild.

Referenced by K3dMngGeometry::InitMngGeometry().

void K3dSphereBuild::BuildSpheres (  ) 

Build spheres from block objects.

Definition at line 138 of file K3dSphereBuild.cpp.

void K3dSphereBuild::DeleteSpheres (  ) 

Delete all spheres from global game data.

Definition at line 143 of file K3dSphereBuild.cpp.

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

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

K3dSphereObj * K3dSphereBuild::CreateNewSphereObj (  ) 

Create new sphere object and add this to the gloabal data.

Return values:
K3dSphereObj* New sphere object pointer

Definition at line 57 of file K3dSphereBuild.cpp.

References K3dSafePointer< _T >::Add(), K3dColor3Build::CreateNewColor3(), K3dMatrixBuild::CreateNewMatrix(), K3dVector3Build::CreateNewVector3(), K3dSphereObj::GetId(), K3dSafePointer< _T >::GetNum(), K3dGameData::GetSphereObjSP(), m_pColor3Build, m_pGameData, m_pMatrixBuild, m_pVector3Build, K3dSphereVis::SetColor(), K3dSphereMove::SetMatrix(), K3dSphere::SetPosition(), K3dSphereMove::SetRelPosition(), K3dSphereMove::SetRotation(), and K3dSphereMove::SetRotMatrix().

Referenced by LoadSpheres().


Member Data Documentation

K3dGameData* K3dSphereBuild::m_pGameData [private]

Global game data, data centered game system.

Reimplemented in K3dObjectBuild, K3dScene, K3dMngGeometry, and K3dMngSystem.

Definition at line 47 of file K3dSphereBuild.h.

Referenced by CreateNewSphereObj(), DeleteSpheres(), K3dSphereBuild(), and LoadSpheres().

K3dVector3Build* K3dSphereBuild::m_pVector3Build [private]

Pointer to 3d vector builder.

Definition at line 48 of file K3dSphereBuild.h.

Referenced by CreateNewSphereObj(), and K3dSphereBuild().

K3dColor3Build* K3dSphereBuild::m_pColor3Build [private]

Pointer to 3d color builder.

Definition at line 49 of file K3dSphereBuild.h.

Referenced by CreateNewSphereObj(), and K3dSphereBuild().

K3dMatrixBuild* K3dSphereBuild::m_pMatrixBuild [private]

Pointer to matrix builder.

Definition at line 50 of file K3dSphereBuild.h.

Referenced by CreateNewSphereObj(), and K3dSphereBuild().

K3dTextureBuild* K3dSphereBuild::m_pTextureBuild [private]

Pointer to texture builder.

Definition at line 51 of file K3dSphereBuild.h.

Referenced by K3dSphereBuild(), and LoadSpheres().


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