⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 movepoint.cpp

📁 墨香最新私服
💻 CPP
字号:
// MovePoint.cpp: implementation of the CMovePoint class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "MovePoint.h"
#include "GameResourceManager.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
GLOBALTON(CMovePoint)
CMovePoint::CMovePoint()
{
	m_bInited = FALSE;
}

CMovePoint::~CMovePoint()
{

}

BOOL CMovePoint::Init()
{
	BOOL rt = m_PointModel.Init(GAMERESRCMNGR->m_GameDesc.MovePoint,NULL,eEngineObjectType_Effect,0,-1);
	if(rt == FALSE)
		return FALSE;
	m_PointModel.ApplyHeightField(TRUE);
	m_bInited = TRUE;
	return TRUE;
}

void CMovePoint::Release()
{
	m_PointModel.Release();
}

void CMovePoint::SetPoint(VECTOR3* pPos)
{
	if(m_bInited == FALSE)
		return;

	m_PointModel.SetEngObjPosition(pPos);
	m_PointModel.Show();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -