⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gcwarlist.h

📁 dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 ,luascript v4.0 support
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : GCWarList.h // Written By  : // Description ://////////////////////////////////////////////////////////////////////////////#ifndef __GC_WAR_LIST_H__#define __GC_WAR_LIST_H__#include "Packet.h"#include "PacketFactory.h"#include "Types.h"#include "GuildWarInfo.h"#include "RaceWarInfo.h"#include <list>typedef list<WarInfo*> 					WarInfoList;typedef WarInfoList::const_iterator 	WarInfoListItor;class GCWarList : public Packet{public:	GCWarList() throw();	virtual ~GCWarList() throw();	void	clear() throw();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_WAR_LIST; }	PacketSize_t getPacketSize() const throw();	string getPacketName() const throw() { return "GCWarList"; }	string toString() const throw();public:	int 	getSize() const throw() { return m_WarInfos.size(); }	bool 	isEmpty() const throw() { return m_WarInfos.empty(); }	void addWarInfo( WarInfo* pWarInfo ) throw() { m_WarInfos.push_back( pWarInfo ); }	WarInfo* popWarInfo() throw();	void	operator = (const GCWarList& WL);private:	WarInfoList m_WarInfos;};class GCWarListFactory : public PacketFactory {public :		Packet* createPacket() throw() { return new GCWarList(); }	string getPacketName() const throw() { return "GCWarList"; }	PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_WAR_LIST; }	PacketSize_t getPacketMaxSize() const throw() { return (RaceWarInfo::getMaxSize() + GuildWarInfo::getMaxSize()) * 12; }};class GCWarListHandler {	public :	static void execute(GCWarList* pPacket, Player* pPlayer) throw(ProtocolException, Error);};#endif // __GC_WAR_LIST_H__

⌨️ 快捷键说明

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