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

📄 glkickverify.cpp

📁 dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 ,luascript v4.0 support
💻 CPP
字号:
//////////////////////////////////////////////////////////////////////// // Filename    : GLKickVerify.cpp // Written By  : reiot@ewestsoft.com// Description : // //////////////////////////////////////////////////////////////////////// include files#include "GLKickVerify.h"//////////////////////////////////////////////////////////////////////// Datagram 按眉肺何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促.//////////////////////////////////////////////////////////////////////void GLKickVerify::read ( Datagram & iDatagram ) 	 throw ( ProtocolException , Error ){	__BEGIN_TRY	BYTE bKicked;	iDatagram.read( bKicked );	m_bKicked = bKicked;	iDatagram.read( m_ID );	//--------------------------------------------------	// read creature's name	//--------------------------------------------------	BYTE szPCName;	iDatagram.read( szPCName );	if ( szPCName == 0 )	throw InvalidProtocolException("szPCName == 0");	if ( szPCName > 20 )	throw InvalidProtocolException("too long name length");	iDatagram.read( m_PCName , szPCName );	__END_CATCH}		    //////////////////////////////////////////////////////////////////////// Datagram 按眉肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促.//////////////////////////////////////////////////////////////////////void GLKickVerify::write ( Datagram & oDatagram ) const      throw ( ProtocolException , Error ){	__BEGIN_TRY	BYTE bKicked = (bool)m_bKicked;	oDatagram.write( bKicked );	oDatagram.write( m_ID );	//--------------------------------------------------	// write PC name	//--------------------------------------------------	BYTE szPCName = m_PCName.size();	if ( szPCName == 0 )	throw InvalidProtocolException("szPCName == 0");	if ( szPCName > 20 )	throw InvalidProtocolException("too long name length");	oDatagram.write( szPCName );	oDatagram.write( m_PCName );	__END_CATCH}//////////////////////////////////////////////////////////////////////// execute packet's handler//////////////////////////////////////////////////////////////////////void GLKickVerify::execute ( Player * pPlayer ) 	 throw ( ProtocolException , Error ){	__BEGIN_TRY			GLKickVerifyHandler::execute( this );			__END_CATCH}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////string GLKickVerify::toString () const    throw (){	StringStream msg;	msg << "GLKickVerify("		<< "bKicked:" << (int)m_bKicked		<< ",ID:" << (int)m_ID		<< ",Name:" << m_PCName		<< ")";	return msg.toString();}

⌨️ 快捷键说明

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