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

📄 aniinfoview.cpp

📁 网络游戏魔域源代码 测试可以完整变异
💻 CPP
字号:
// AniInfoView.cpp: implementation of the CAniInfoView class.
//
//////////////////////////////////////////////////////////////////////

#include "AniInfoView.h"
#include "GameDataSet.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CAniInfoView::CAniInfoView()
{

}

CAniInfoView::~CAniInfoView()
{

}

//-----------------------------------------------------------------------
void CAniInfoView::Show()
{
	CAni* pAni = g_objGameDataSet.GetDataAni(m_szFile, m_szIndex);
	if(pAni)
		pAni->Show(m_nFrame, m_posShow.x, m_posShow.y);
}
//-----------------------------------------------------------------------
CAniInfoView* CAniInfoView::CreateNew(char* pszFile, char* pszIndex, CMyPos posShow, int nFrame)
{
	CAniInfoView* pView = new CAniInfoView;
	MYASSERT(pView);
	if(pView->Create(pszFile, pszIndex, posShow, nFrame))
		return pView;
	SAFE_DELETE(pView);
	return NULL;
}
//-----------------------------------------------------------------------
BOOL CAniInfoView::Create(char* pszFile, char* pszIndex, CMyPos posShow, int nFrame)
{
	if(!pszFile || !pszIndex)
		return false;
	strcpy(m_szFile, pszFile);
	strcpy(m_szIndex, pszIndex);

	m_posShow.x = posShow.x;
	m_posShow.y = posShow.y;
	m_nFrame = nFrame;
	return true;
}
//-----------------------------------------------------------------------

⌨️ 快捷键说明

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