📄 gcthrowbombok3.cpp
字号:
//////////////////////////////////////////////////////////////////////// // Filename : GCThrowBombOK3.cpp // Written By : elca@ewestsoft.com// Description : 磊脚俊霸 静绰 扁贱狼 己傍阑 舅府扁 困茄 菩哦 努贰胶狼// 糕滚 沥狼.// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// include files//////////////////////////////////////////////////////////////////////#include "GCThrowBombOK3.h"//////////////////////////////////////////////////////////////////////// constructor//////////////////////////////////////////////////////////////////////GCThrowBombOK3::GCThrowBombOK3 () throw (){ __BEGIN_TRY m_CListNum = 0; __END_CATCH} //////////////////////////////////////////////////////////////////////// destructor//////////////////////////////////////////////////////////////////////GCThrowBombOK3::~GCThrowBombOK3 () throw (){ __BEGIN_TRY __END_CATCH}//////////////////////////////////////////////////////////////////////// 涝仿胶飘覆(滚欺)栏肺何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促.//////////////////////////////////////////////////////////////////////void GCThrowBombOK3::read ( SocketInputStream & iStream ) throw ( ProtocolException , Error ){ __BEGIN_TRY // 弥利拳 累诀矫 角力 农扁甫 疙矫窍档废 茄促. iStream.read( m_ObjectID); 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 ); } __END_CATCH} //////////////////////////////////////////////////////////////////////// 免仿胶飘覆(滚欺)栏肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促.//////////////////////////////////////////////////////////////////////void GCThrowBombOK3::write ( SocketOutputStream & oStream ) const throw ( ProtocolException , Error ){ __BEGIN_TRY // 弥利拳 累诀矫 角力 农扁甫 疙矫窍档废 茄促. oStream.write( m_ObjectID); 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 ); } __END_CATCH}////////////////////////////////////////////////////////////////////////// GCThrowBombOK3::addListElement()// // ( 函拳何困, 函拳荐摹 ) 狼 茄 悸阑 府胶飘俊 持扁 困茄 糕滚 窃荐. ////////////////////////////////////////////////////////////////////////void GCThrowBombOK3::addCListElement( ObjectID_t ObjectID ) throw(){ __BEGIN_TRY // Creature ID甫 眠啊茄促. m_CList.push_back( ObjectID ); // 农府贸 ID count甫 刘啊矫挪促. m_CListNum++; __END_CATCH}/*////////////////////////////////////////////////////////////////////////// GCThrowBombOK3::deleteCListElement()// // Creature List狼 夸家甫 瘤匡锭 鞘夸茄 糕滚 窃荐.////////////////////////////////////////////////////////////////////////void GCThrowBombOK3::deleteCListElement() throw(){ __BEGIN_TRY // 农府媚 酒捞叼甫 窍唱 瘤款促. m_CList.pop_front(); // 农府贸 府胶飘 墨款磐甫 窍唱 瘤款促. m_CListNum--; __END_CATCH}*/////////////////////////////////////////////////////////////////////////// execute packet's handler////////////////////////////////////////////////////////////////////////void GCThrowBombOK3::execute ( Player * pPlayer ) throw ( ProtocolException , Error ){ __BEGIN_TRY GCThrowBombOK3Handler::execute( this , pPlayer ); __END_CATCH}////////////////////////////////////////////////////////////////////////// get packet's debug string////////////////////////////////////////////////////////////////////////string GCThrowBombOK3::toString () const throw (){ __BEGIN_TRY StringStream msg; msg << "GCThrowBombOK3( ObjectID:" << (int)m_ObjectID << ",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 << ")"; return msg.toString(); __END_CATCH}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -