lcqueryresultplayerid.h
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 127 行
H
127 行
//////////////////////////////////////////////////////////////////////// // Filename : LCQueryResultPlayerID.h // Written By : reiot@ewestsoft.com// Description : // //////////////////////////////////////////////////////////////////////#ifndef __LC_QUERY_RESULT_PLAYER_ID_H__#define __LC_QUERY_RESULT_PLAYER_ID_H__// include files#include "Packet.h"#include "PacketFactory.h"////////////////////////////////////////////////////////////////////////// class LCQueryResultPlayerID;//// 努扼捞攫飘啊 肺弊牢 辑滚俊霸 弥檬俊 傈价窍绰 菩哦捞促.// 酒捞叼客 菩胶况靛啊 鞠龋拳登绢 乐促.////////////////////////////////////////////////////////////////////////class LCQueryResultPlayerID : public Packet {public: // constructor LCQueryResultPlayerID() throw() : m_bExist(false) {}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_LC_QUERY_RESULT_PLAYER_ID; } // get packet's body size PacketSize_t getPacketSize() const throw() { return szbool + szBYTE + m_PlayerID.size(); } // get packet name string getPacketName() const throw() { return "LCQueryResultPlayerID"; } // get packet's debug string string toString() const throw();public: // get/set player id string getPlayerID() const throw() { return m_PlayerID; } void setPlayerID(const string & playerID) throw() { m_PlayerID = playerID; } // get/set player id's existence bool isExist() const throw() { return m_bExist; } void setExist(bool bExist = true) throw() { m_bExist = bExist; }private : // player id string m_PlayerID; // player id's existence bool m_bExist;};////////////////////////////////////////////////////////////////////////// class LCQueryResultPlayerIDFactory;//// Factory for LCQueryResultPlayerID////////////////////////////////////////////////////////////////////////class LCQueryResultPlayerIDFactory : public PacketFactory {public: // create packet Packet* createPacket() throw() { return new LCQueryResultPlayerID(); } // get packet name string getPacketName() const throw() { return "LCQueryResultPlayerID"; } // get packet id PacketID_t getPacketID() const throw() { return Packet::PACKET_LC_QUERY_RESULT_PLAYER_ID; } // get packet's max body size PacketSize_t getPacketMaxSize() const throw() { return szbool + szBYTE + 20; }};////////////////////////////////////////////////////////////////////////// class LCQueryResultPlayerIDHandler;////////////////////////////////////////////////////////////////////////class LCQueryResultPlayerIDHandler {public: // execute packet's handler static void execute(LCQueryResultPlayerID* pPacket, Player* pPlayer) throw(ProtocolException, Error);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?