gcnotifywin.h
来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 69 行
H
69 行
//////////////////////////////////////////////////////////////////////////////// Filename : GCNotifyWin.h // Written By : excel96// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __GC_NOTIFY_WIN_H__#define __GC_NOTIFY_WIN_H__#include "Packet.h"#include "PacketFactory.h"//////////////////////////////////////////////////////////////////////////////// class GCNotifyWin;// NPC 狼 措荤甫 林函狼 PC 甸俊霸 傈价茄促.//////////////////////////////////////////////////////////////////////////////class GCNotifyWin : public Packet {public: void read(SocketInputStream & iStream) throw(ProtocolException, Error); void write(SocketOutputStream & oStream) const throw(ProtocolException, Error); void execute(Player* pPlayer) throw(ProtocolException, Error); PacketID_t getPacketID() const throw() { return PACKET_GC_NOTIFY_WIN; } PacketSize_t getPacketSize() const throw() { return szDWORD + szBYTE + m_Name.size(); } string getPacketName() const throw() { return "GCNotifyWin"; } string toString() const throw(); DWORD getGiftID() const throw() { return m_GiftID; } void setGiftID(DWORD gID) throw() { m_GiftID = gID; } string getName() const throw() { return m_Name; } void setName(const string & msg) throw() { m_Name = msg; }private: DWORD m_GiftID; // NPC's object id string m_Name; // chatting message };//////////////////////////////////////////////////////////////////////////////// class GCNotifyWinFactory;//////////////////////////////////////////////////////////////////////////////class GCNotifyWinFactory : public PacketFactory {public: Packet* createPacket() throw() { return new GCNotifyWin(); } string getPacketName() const throw() { return "GCNotifyWin"; } PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_NOTIFY_WIN; } PacketSize_t getPacketMaxSize() const throw() { return szDWORD + szBYTE + 2048 ; }};//////////////////////////////////////////////////////////////////////////////// class GCNotifyWinHandler;//////////////////////////////////////////////////////////////////////////////class GCNotifyWinHandler {public: static void execute(GCNotifyWin* pPacket, Player* pPlayer) throw(ProtocolException, Error);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?