📄 gcthrowbombok1.cpp
字号:
//////////////////////////////////////////////////////////////////////// // Filename : GCThrowBombOK1.cpp // Written By : elca@ewestsoft.com// Description : 磊脚俊霸 静绰 扁贱狼 己傍阑 舅府扁 困茄 菩哦 努贰胶狼// 糕滚 沥狼.// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// include files//////////////////////////////////////////////////////////////////////#include "GCThrowBombOK1.h"//////////////////////////////////////////////////////////////////////// constructor//////////////////////////////////////////////////////////////////////GCThrowBombOK1::GCThrowBombOK1 () throw (){ __BEGIN_TRY m_CListNum = 0; __END_CATCH} //////////////////////////////////////////////////////////////////////// destructor//////////////////////////////////////////////////////////////////////GCThrowBombOK1::~GCThrowBombOK1 () throw (){ __BEGIN_TRY __END_CATCH}//////////////////////////////////////////////////////////////////////// 涝仿胶飘覆(滚欺)栏肺何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促.//////////////////////////////////////////////////////////////////////void GCThrowBombOK1::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 GCThrowBombOK1::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}////////////////////////////////////////////////////////////////////////// GCThrowBombOK1::addListElement()// // ( 函拳何困, 函拳荐摹 ) 狼 茄 悸阑 府胶飘俊 持扁 困茄 糕滚 窃荐. ////////////////////////////////////////////////////////////////////////void GCThrowBombOK1::addCListElement( ObjectID_t ObjectID ) throw(){ __BEGIN_TRY // Creature ID甫 眠啊茄促. m_CList.push_back( ObjectID ); // 农府贸 ID count甫 刘啊矫挪促. m_CListNum++; __END_CATCH}/*////////////////////////////////////////////////////////////////////////// GCThrowBombOK1::deleteCListElement()// // Creature List狼 夸家甫 瘤匡锭 鞘夸茄 糕滚 窃荐.////////////////////////////////////////////////////////////////////////void GCThrowBombOK1::deleteCListElement() throw(){ __BEGIN_TRY // 农府媚 酒捞叼甫 窍唱 瘤款促. m_CList.pop_front(); // 农府贸 府胶飘 墨款磐甫 窍唱 瘤款促. m_CListNum--; __END_CATCH}*/////////////////////////////////////////////////////////////////////////// execute packet's handler////////////////////////////////////////////////////////////////////////void GCThrowBombOK1::execute ( Player * pPlayer ) throw ( ProtocolException , Error ){ __BEGIN_TRY GCThrowBombOK1Handler::execute( this , pPlayer ); __END_CATCH}////////////////////////////////////////////////////////////////////////// get packet's debug string////////////////////////////////////////////////////////////////////////string GCThrowBombOK1::toString () const throw (){ __BEGIN_TRY StringStream msg; msg << "GCThrowBombOK1( 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 + -