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

📄 gcskilltotileok5.cpp

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

⌨️ 快捷键说明

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