cglotteryselect.h

来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 128 行

H
128
字号
//////////////////////////////////////////////////////////////////////// // Filename    : CGLotterySelect.h // Written By  :// Description : // //////////////////////////////////////////////////////////////////////#ifndef __CG_LOTTERY_SELECT_H__#define __CG_LOTTERY_SELECT_H__// include files#include "Types.h"#include "Exception.h"#include "Packet.h"#include "PacketFactory.h"enum{	TYPE_SELECT_LOTTERY = 0,					// 汗鼻 急琶	TYPE_FINISH_SCRATCH,				// 汗鼻 避澜 肯丰	TYPE_OVER_ENDING,					// 浚爹 辆丰	TYPE_MAX,};////////////////////////////////////////////////////////////////////////// class CGLotterySelect;////////////////////////////////////////////////////////////////////////class CGLotterySelect : public Packet{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_LOTTERY_SELECT; }		// get packet's body size	PacketSize_t getPacketSize() const throw() { return szBYTE + szDWORD + szDWORD; }	// get packet name	string getPacketName() const throw() { return "CGLotterySelect"; }	// get packet's debug string	string toString() const throw();	BYTE getType() const throw() { return m_Type; }	void setType( BYTE type ) { m_Type = type; }	DWORD getGiftID() const throw() { return m_GiftID; }	void setGiftID( DWORD GiftID ) throw() { m_GiftID = GiftID; }	DWORD getQuestLevel() const throw() { return m_QuestLevel; }	void setQuestLevel( DWORD QuestLevel ) throw() { m_QuestLevel = QuestLevel; }private :	BYTE	m_Type;	DWORD	m_QuestLevel;	DWORD	m_GiftID;	};////////////////////////////////////////////////////////////////////////// class CGLotterySelectFactory;//// Factory for CGLotterySelect////////////////////////////////////////////////////////////////////////class CGLotterySelectFactory : public PacketFactory {public:		// constructor	CGLotterySelectFactory() throw() {}		// destructor	virtual ~CGLotterySelectFactory() throw() {}	public:		// create packet	Packet* createPacket() throw() { return new CGLotterySelect(); }	// get packet name	string getPacketName() const throw() { return "CGLotterySelect"; }		// get packet id	PacketID_t getPacketID() const throw() { return Packet::PACKET_CG_LOTTERY_SELECT; }	// get Packet Max Size	PacketSize_t getPacketMaxSize() const throw() { return szBYTE + szDWORD + szDWORD; }};////////////////////////////////////////////////////////////////////////// class CGLotterySelectHandler;////////////////////////////////////////////////////////////////////////class CGLotterySelectHandler {public:	// execute packet's handler	static void execute(CGLotterySelect* pCGLotterySelect, Player* pPlayer) throw(Error);};#endif

⌨️ 快捷键说明

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