📄 gcremoveeffect.cpp
字号:
//////////////////////////////////////////////////////////////////////// // Filename : GCRemoveEffect.cpp // Written By : elca@ewestsoft.com// Description : 磊脚俊霸 静绰 扁贱狼 己傍阑 舅府扁 困茄 菩哦 努贰胶狼// 糕滚 沥狼.// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// include files//////////////////////////////////////////////////////////////////////#include "GCRemoveEffect.h"//////////////////////////////////////////////////////////////////////// constructor//////////////////////////////////////////////////////////////////////GCRemoveEffect::GCRemoveEffect () throw (){ __BEGIN_TRY m_ListNum = 0; __END_CATCH} //////////////////////////////////////////////////////////////////////// destructor//////////////////////////////////////////////////////////////////////GCRemoveEffect::~GCRemoveEffect () throw (){ __BEGIN_TRY __END_CATCH}//////////////////////////////////////////////////////////////////////// 涝仿胶飘覆(滚欺)栏肺何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促.//////////////////////////////////////////////////////////////////////void GCRemoveEffect::read ( SocketInputStream & iStream ) throw ( ProtocolException , Error ){ __BEGIN_TRY iStream.read( m_ObjectID); // 弥利拳 累诀矫 角力 农扁甫 疙矫窍档废 茄促. iStream.read( m_ListNum ); EffectID_t value; for( int i = 0; i < m_ListNum; i++ ) { iStream.read( value ); m_EffectList.push_back(value); } __END_CATCH} //////////////////////////////////////////////////////////////////////// 免仿胶飘覆(滚欺)栏肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促.//////////////////////////////////////////////////////////////////////void GCRemoveEffect::write ( SocketOutputStream & oStream ) const throw ( ProtocolException , Error ){ __BEGIN_TRY oStream.write( m_ObjectID); // 弥利拳 累诀矫 角力 农扁甫 疙矫窍档废 茄促. oStream.write( m_ListNum ); for ( list<EffectID_t>:: const_iterator itr = m_EffectList.begin(); itr!= m_EffectList.end(); itr++) { oStream.write(*itr); } __END_CATCH}////////////////////////////////////////////////////////////////////////// execute packet's handler////////////////////////////////////////////////////////////////////////void GCRemoveEffect::execute ( Player * pPlayer ) throw ( ProtocolException , Error ){ __BEGIN_TRY GCRemoveEffectHandler::execute( this , pPlayer ); __END_CATCH}////////////////////////////////////////////////////////////////////////// GCRemoveEffect::addListElement()// // ( 函拳何困, 函拳荐摹 ) 狼 茄 悸阑 府胶飘俊 持扁 困茄 糕滚 窃荐. ////////////////////////////////////////////////////////////////////////void GCRemoveEffect::addEffectList( EffectID_t Value ) throw(){ __BEGIN_TRY // 函窍绰 巴捞 公均牢瘤 List俊 持绰促. m_EffectList.push_back( Value ); // 函拳 悸狼 肮荐甫 窍唱 刘啊 矫挪促. m_ListNum++; __END_CATCH}////////////////////////////////////////////////////////////////////////// get packet's debug string////////////////////////////////////////////////////////////////////////string GCRemoveEffect::toString () const throw (){ __BEGIN_TRY StringStream msg; msg << "GCRemoveEffect(" << ",ListNum:" << (int)m_ListNum << ",ListSet(" ; for ( list<EffectID_t>::const_iterator itr = m_EffectList.begin(); itr!= m_EffectList.end() ; itr++ ) { msg << (int)(*itr) << ","; } msg << ")"; return msg.toString(); __END_CATCH}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -