cgrequestinfo.h

来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 121 行

H
121
字号
//--------------------------------------------------------------------------------// // Filename    : CGRequestInfo.h // Written By  : 辫己刮// //--------------------------------------------------------------------------------#ifndef __CG_REQUEST_INFO_H__#define __CG_REQUEST_INFO_H__// include files#include "Packet.h"#include "PacketFactory.h"//--------------------------------------------------------------------------------//// class CGRequestInfo;////--------------------------------------------------------------------------------class CGRequestInfo : public Packet {public :	enum REQUEST_INFO_CODE	{		REQUEST_CHARACTER_INFO,				REQUEST_INFO_MAX	};public:		// 涝仿胶飘覆(滚欺)栏肺何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促.	void read(SocketInputStream & iStream) throw(ProtocolException, Error);		    	// 免仿胶飘覆(滚欺)栏肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促.	void write(SocketOutputStream & oStream) const throw(ProtocolException, Error);	// execute packet's handler	void execute(Player* pPlayer) throw(ProtocolException, Error);	// get packet id	PacketID_t getPacketID() const throw() { return PACKET_CG_REQUEST_INFO; }		// get packet's body size	// *OPTIMIZATION HINT*	// const static CGRequestInfoPacketSize 甫 沥狼秦辑 府畔窍扼.	PacketSize_t getPacketSize() const throw() { return szBYTE + szuint; }	// get packet name	string getPacketName() const throw() { return "CGRequestInfo"; }		// get packet's debug string	string toString() const throw();	public:	// get / set Code	BYTE getCode() const throw() { return m_Code; }	void setCode(BYTE code) throw() { m_Code = code; }	// get / set Code	uint getValue() const throw() { return m_Value; }	void setValue(uint value) throw() { m_Value = value; }private :		// Code	BYTE    m_Code;	uint    m_Value;};//--------------------------------------------------------------------------------//// class CGRequestInfoFactory;//// Factory for CGRequestInfo////--------------------------------------------------------------------------------class CGRequestInfoFactory : public PacketFactory {public:		// create packet	Packet* createPacket() throw() { return new CGRequestInfo(); }	// get packet name	string getPacketName() const throw() { return "CGRequestInfo"; }		// get packet id	PacketID_t getPacketID() const throw() { return Packet::PACKET_CG_REQUEST_INFO; }	// get packet's max body size	// *OPTIMIZATION HINT*	// const static CGRequestInfoPacketSize 甫 沥狼秦辑 府畔窍扼.	PacketSize_t getPacketMaxSize() const throw() { return szBYTE + szuint; }};//--------------------------------------------------------------------------------//// class CGRequestInfoHandler;////--------------------------------------------------------------------------------class CGRequestInfoHandler {	public:	// execute packet's handler	static void execute(CGRequestInfo* pPacket, Player* player) throw(ProtocolException, Error);};#endif

⌨️ 快捷键说明

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