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

📄 gcmineexplosionok1.cpp

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 CPP
字号:
//////////////////////////////////////////////////////////////////////// // Filename    : GCMineExplosionOK1.cpp // Written By  : elca@ewestsoft.com// Description : 磊脚俊霸 静绰 扁贱狼 己傍阑 舅府扁 困茄 菩哦 努贰胶狼//               糕滚 沥狼.// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// include files//////////////////////////////////////////////////////////////////////#include "GCMineExplosionOK1.h"//////////////////////////////////////////////////////////////////////// constructor//////////////////////////////////////////////////////////////////////GCMineExplosionOK1::GCMineExplosionOK1 ()      throw (){	__BEGIN_TRY	m_CListNum = 0;	__END_CATCH}	//////////////////////////////////////////////////////////////////////// destructor//////////////////////////////////////////////////////////////////////GCMineExplosionOK1::~GCMineExplosionOK1 ()     throw (){	__BEGIN_TRY	__END_CATCH}//////////////////////////////////////////////////////////////////////// 涝仿胶飘覆(滚欺)栏肺何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促.//////////////////////////////////////////////////////////////////////void GCMineExplosionOK1::read ( SocketInputStream & iStream ) 	 throw ( ProtocolException , Error ){	__BEGIN_TRY			// 弥利拳 累诀矫 角力 农扁甫 疙矫窍档废 茄促.	iStream.read( m_X );	iStream.read( m_Y );	iStream.read( m_Dir );	iStream.read( m_ItemType);    iStream.read( m_CListNum );    ObjectID_t m_Value;	int i;	for( i = 0; i < m_CListNum; i++ ) {		iStream.read( m_Value );		m_CList.push_back( m_Value );	}	ModifyInfo::read( iStream);		__END_CATCH}		    //////////////////////////////////////////////////////////////////////// 免仿胶飘覆(滚欺)栏肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促.//////////////////////////////////////////////////////////////////////void GCMineExplosionOK1::write ( SocketOutputStream & oStream )      const throw ( ProtocolException , Error ){	__BEGIN_TRY			// 弥利拳 累诀矫 角力 农扁甫 疙矫窍档废 茄促.	oStream.write( m_X );	oStream.write( m_Y );	oStream.write( m_Dir );	oStream.write( m_ItemType);    oStream.write( m_CListNum );    for ( list<ObjectID_t>::const_iterator itr = m_CList.begin(); itr!= m_CList.end() ; itr++ ) {		oStream.write( *itr );	}	ModifyInfo::write( oStream);		__END_CATCH}////////////////////////////////////////////////////////////////////////// GCMineExplosionOK1::addListElement()// // ( 函拳何困, 函拳荐摹 ) 狼 茄 悸阑 府胶飘俊 持扁 困茄 糕滚 窃荐. ////////////////////////////////////////////////////////////////////////void GCMineExplosionOK1::addCListElement( ObjectID_t ObjectID )    throw(){    __BEGIN_TRY    // Creature ID甫 眠啊茄促.    m_CList.push_back( ObjectID );    // 农府贸 ID count甫 刘啊矫挪促.    m_CListNum++;    __END_CATCH}/*////////////////////////////////////////////////////////////////////////// GCMineExplosionOK1::deleteCListElement()// // Creature List狼 夸家甫 瘤匡锭 鞘夸茄 糕滚 窃荐.////////////////////////////////////////////////////////////////////////void GCMineExplosionOK1::deleteCListElement()    throw(){    __BEGIN_TRY    // 农府媚 酒捞叼甫 窍唱 瘤款促.    m_CList.pop_front();    // 农府贸 府胶飘 墨款磐甫 窍唱 瘤款促.    m_CListNum--;    __END_CATCH}*/////////////////////////////////////////////////////////////////////////// execute packet's handler////////////////////////////////////////////////////////////////////////void GCMineExplosionOK1::execute ( Player * pPlayer ) 	 throw ( ProtocolException , Error ){	__BEGIN_TRY			GCMineExplosionOK1Handler::execute( this , pPlayer );			__END_CATCH}////////////////////////////////////////////////////////////////////////// get packet's debug string////////////////////////////////////////////////////////////////////////string GCMineExplosionOK1::toString () const       throw (){	__BEGIN_TRY	StringStream msg;	msg << "GCMineExplosionOK1("		<< "X:" << (int)m_X		<< ",Y:" << (int)m_Y		<< ",Dir:" << (int)m_Dir		<< ",ItemType:" << (int)m_ItemType		<< ",CListNum: " << (int)m_CListNum 		<< " CListSet(";	for ( list<ObjectID_t>::const_iterator itr = m_CList.begin(); itr!= m_CList.end() ; itr++ ) {		msg << (int)(*itr) << ",";	}	msg << ")";	msg << ModifyInfo::toString();	msg << ")";	return msg.toString();	__END_CATCH}

⌨️ 快捷键说明

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