npcitem.cpp
来自「决战帝王1.5武神降临对喜爱决战的玩家共享研究用」· C++ 代码 · 共 27 行
CPP
27 行
// NpcItem.cpp: implementation of the CNpcItem class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "NpcItem.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CNpcItem::CNpcItem()
{
m_nRow = 0;
m_nField = 0;
m_ppItem = NULL;
}
CNpcItem::~CNpcItem()
{
if(m_ppItem != NULL)
{
for(int i = 0; i < m_nField; i++) delete[] m_ppItem[i];
delete [] m_ppItem;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?