#include <K3dCameraBuild.h>
Inheritance diagram for K3dCameraBuild:
Public Member Functions | |
K3dCameraBuild (K3dGameData *_pGameData) | |
~K3dCameraBuild (void) | |
void | LoadCameras () |
Load Camera and add to global data. | |
void | DeleteCameras () |
Delete all cameras from global data. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. |
Definition at line 39 of file K3dCameraBuild.h.
K3dCameraBuild::K3dCameraBuild | ( | K3dGameData * | _pGameData | ) |
K3dCameraBuild::~K3dCameraBuild | ( | void | ) |
void K3dCameraBuild::LoadCameras | ( | ) |
Load Camera and add to global data.
Definition at line 46 of file K3dCameraBuild.cpp.
References K3dString::AddNumber(), K3dCameraData::GetActiveCamId(), K3dSceneData::GetLua(), K3dString::GetString(), K_CAM_DESCENT, K_CAM_FIRST_PERSON, K_CAM_SPECTATE, K_STR_ACTIVECAMERA_ID, K_STR_CAMERA, K_STR_DESCENT, K_STR_FIRST_PERSON, K_STR_MOUSEMOVE, K_STR_NAME, K_STR_NUM_CAMERAS, K_STR_POS_X, K_STR_POS_Y, K_STR_POS_Z, K_STR_ROT_X, K_STR_ROT_Y, K_STR_ROT_Z, K_STR_SPECTATE, K_STR_SPEED, K3dLua::LuaError(), K3dLua::LuaGetFieldBool(), K3dLua::LuaGetFieldNumber(), K3dLua::LuaGetFieldString(), K3dLua::LuaGetGlobal(), K3dLua::LuaIsNumber(), K3dLua::LuaIsTable(), K3dLua::LuaToNumber(), and m_pGameData.
Referenced by K3dMngGeometry::InitMngGeometry().
void K3dCameraBuild::DeleteCameras | ( | ) |
Delete all cameras from global data.
Definition at line 124 of file K3dCameraBuild.cpp.
References K3dSafePointer< _T >::Delete(), K3dSafePointer< _T >::Get(), K3dGameData::GetCameraObjSP(), K3dSafePointer< _T >::GetNum(), and m_pGameData.
Referenced by K3dMngGeometry::DeleteMngGeometry(), and ~K3dCameraBuild().
K3dGameData* K3dCameraBuild::m_pGameData [private] |
Global game data, data centered game system.
Reimplemented in K3dObjectBuild, K3dScene, K3dMngGeometry, and K3dMngSystem.
Definition at line 41 of file K3dCameraBuild.h.
Referenced by DeleteCameras(), K3dCameraBuild(), and LoadCameras().