sgaddguildok.h
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 186 行
H
186 行
//----------------------------------------------------------------------// // Filename : SGAddGuildOK.h // Written By : Reiot// Description : // //----------------------------------------------------------------------#ifndef __SG_ADD_GUILD_OK_H__#define __SG_ADD_GUILD_OK_H__// include files#include "Packet.h"#include "PacketFactory.h"//----------------------------------------------------------------------//// class SGAddGuildOK;//// 评捞 眠啊 登菌澜阑 霸烙辑滚俊 舅赴促.//// *CAUTION*////----------------------------------------------------------------------class SGAddGuildOK : public Packet {public: // Datagram 按眉俊辑何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促. void read(SocketInputStream& iStream) throw(ProtocolException, Error); // Datagram 按眉肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促. 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_SG_ADD_GUILD_OK; } // get packet's body size PacketSize_t getPacketSize() const throw() { return szGuildID + // guild ID szBYTE + // guild name length m_GuildName.size() + // guild name size szGuildRace + // guild race size szGuildState + // gulld state szServerGroupID + // server group ID szZoneID + // guild zone ID szBYTE + // guild master length m_GuildMaster.size() + // guild master szBYTE + // guild intro length m_GuildIntro.size(); // guild intro } // get packet name string getPacketName() const throw() { return "SGAddGuildOK"; } // get packet's debug string string toString() const throw();public: // get/set guildID GuildID_t getGuildID() const throw() { return m_GuildID; } void setGuildID( GuildID_t guildID ) throw() { m_GuildID = guildID; } // get/set guild name const string& getGuildName() const throw() { return m_GuildName; } void setGuildName( const string& name ) throw() { m_GuildName = name; } // get/set guild race GuildRace_t getGuildRace() const throw() { return m_GuildRace; } void setGuildRace( GuildRace_t guildRace ) throw() { m_GuildRace = guildRace; } // get/set guild state GuildState_t getGuildState() const throw() { return m_GuildState; } void setGuildState( GuildState_t guildState ) throw() { m_GuildState = guildState; } // get/set server group ID ServerGroupID_t getServerGroupID() const throw() { return m_ServerGroupID; } void setServerGroupID( ServerGroupID_t serverGroupID ) throw() { m_ServerGroupID = serverGroupID; } // get/set guild zone ID ZoneID_t getGuildZoneID() const throw() { return m_GuildZoneID; } void setGuildZoneID( ZoneID_t guildZoneID ) throw() { m_GuildZoneID = guildZoneID; } // get/set guild master const string& getGuildMaster() const throw() { return m_GuildMaster; } void setGuildMaster( const string& master ) throw() { m_GuildMaster = master; } // get/set guild intro const string& getGuildIntro() const throw() { return m_GuildIntro; } void setGuildIntro( const string& intro ) throw() { m_GuildIntro = intro; }private : // GuildID GuildID_t m_GuildID; // guild name string m_GuildName; // guild race GuildRace_t m_GuildRace; // guild state GuildState_t m_GuildState; // server group ID ServerGroupID_t m_ServerGroupID; // guild zone ID ZoneID_t m_GuildZoneID; // guild master string m_GuildMaster; // guild intro string m_GuildIntro;};////////////////////////////////////////////////////////////////////////// class SGAddGuildOKFactory;//// Factory for SGAddGuildOK////////////////////////////////////////////////////////////////////////class SGAddGuildOKFactory : public PacketFactory {public: // create packet Packet* createPacket() throw() { return new SGAddGuildOK(); } // get packet name string getPacketName() const throw() { return "SGAddGuildOK"; } // get packet id PacketID_t getPacketID() const throw() { return Packet::PACKET_SG_ADD_GUILD_OK; } // get packet's max body size // *OPTIMIZATION HINT* // const static LGIncomingConnectionPacketMaxSize 甫 沥狼, 府畔窍扼. PacketSize_t getPacketMaxSize() const throw() { return szGuildID + // guild ID szBYTE + // guild name length 30 + // guild name max size szGuildRace + // guild race size szGuildState + // gulld state szServerGroupID + // server group ID szZoneID + // guild zone ID szBYTE + // guild master length 20 + // guild master max size szBYTE + // guild intro length 256; // guild intro max size }};////////////////////////////////////////////////////////////////////////// class LGIncomingConnectionHandler;////////////////////////////////////////////////////////////////////////class SGAddGuildOKHandler { public: // execute packet's handler static void execute(SGAddGuildOK* pPacket) throw(ProtocolException, Error);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?