📄 gcshowguildinfo.h
字号:
//////////////////////////////////////////////////////////////////////// // Filename : GCShowGuildInfo.h // Written By : // //////////////////////////////////////////////////////////////////////#ifndef __GC_SHOW_GUILD_INFO_H__#define __GC_SHOW_GUILD_INFO_H__// include files#include "Packet.h"#include "PacketFactory.h"////////////////////////////////////////////////////////////////////////// class GCShowGuildInfo;//// 努扼捞攫飘俊 辨靛 殿废 芒阑 剁快档废 茄促.////////////////////////////////////////////////////////////////////////class GCShowGuildInfo : 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_GC_SHOW_GUILD_INFO; } // get packet's body size PacketSize_t getPacketSize() const throw() { return szGuildID + // Guild ID szBYTE + // Guild Name length m_GuildName.size() + // Guild Name szGuildState + // Guild State szBYTE + // Guild Master length m_GuildMaster.size() + // Guild Master szBYTE + // Guild Member Count szBYTE + // Guild Intro length m_GuildIntro.size() + // Guild Intro szGold; // Guild Join Fee } // get packet name string getPacketName() const throw() { return "GCShowGuildInfo"; } // get packet's debug string string toString() const throw(); // get/set Guild ID 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& GuildName ) throw() { m_GuildName = GuildName; } // get/set Guild State GuildState_t getGuildState() const throw() { return m_GuildState; } void setGuildState( GuildState_t GuildState ) throw() { m_GuildState = GuildState; } // get/set Guild Master const string& getGuildMaster() const throw() { return m_GuildMaster; } void setGuildMaster( const string& GuildMaster ) throw() { m_GuildMaster = GuildMaster; } // get/set Guild Member Count BYTE getGuildMemberCount() const throw() { return m_GuildMemberCount; } void setGuildMemberCount( BYTE GuildMemberCount ) throw() { m_GuildMemberCount = GuildMemberCount; } // get/set Guild Intro const string& getGuildIntro() const throw() { return m_GuildIntro; } void setGuildIntro( const string& GuildIntro ) throw() { m_GuildIntro = GuildIntro; } // get/set Guild Join Fee Gold_t getJoinFee() const throw() { return m_JoinFee; } void setJoinFee( Gold_t JoinFee ) throw() { m_JoinFee = JoinFee; } private : // Guild ID GuildID_t m_GuildID; // Guild Name string m_GuildName; // Guild State GuildState_t m_GuildState; // Guild Master string m_GuildMaster; // Guild Member Count BYTE m_GuildMemberCount; // Guild Intro string m_GuildIntro; // Guild Join Fee Gold_t m_JoinFee;};////////////////////////////////////////////////////////////////////////// class GCShowGuildInfoFactory;//// Factory for GCShowGuildInfo////////////////////////////////////////////////////////////////////////class GCShowGuildInfoFactory : public PacketFactory {public : // create packet Packet* createPacket() throw() { return new GCShowGuildInfo(); } // get packet name string getPacketName() const throw() { return "GCShowGuildInfo"; } // get packet id PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_SHOW_GUILD_INFO; } // get packet's max body size // *OPTIMIZATION HINT* // const static GCSystemMessagePacketMaxSize 甫 沥狼, 府畔窍扼. PacketSize_t getPacketMaxSize() const throw() { return szGuildID + // Guild ID szBYTE + // Guild Name length 30 + // Guild Name szGuildState + // Guild State szBYTE + // Guild Master length 20 + // Guild Master szBYTE + // Guild Member Count szBYTE + // Guild Intro length 256 + // Guild Intro szGold; // Guild Join Fee }};////////////////////////////////////////////////////////////////////////// class GCShowGuildInfo;////////////////////////////////////////////////////////////////////////class GCShowGuildInfoHandler { public : // execute packet's handler static void execute(GCShowGuildInfo* pPacket, Player* pPlayer) throw(ProtocolException, Error);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -