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

📄 gcselectquestid.h

📁 dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 ,luascript v4.0 support
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : GCSelectQuestID.h // Written By  : excel96// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __GC_SELECT_QUEST_ID_H__#define __GC_SELECT_QUEST_ID_H__#include <list>#include "Packet.h"#include "PacketFactory.h"#ifdef __GAME_SERVER__#include <algorithm>#endifconst BYTE maxQuestNum = 255;//////////////////////////////////////////////////////////////////////////////// class GCSelectQuestID;//////////////////////////////////////////////////////////////////////////////class GCSelectQuestID : public Packet{public:#ifdef __GAME_SERVER__	// inItr篮 container<QuestID_t>::input_iterator 咯具 茄促.	template<class inItr>	explicit GCSelectQuestID( inItr b, inItr e ) throw()	{		copy( b, e, back_inserter( m_QuestIDList ) );	}#endif	GCSelectQuestID() throw() { }	virtual ~GCSelectQuestID() 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_SELECT_QUEST_ID; }	PacketSize_t getPacketSize() const throw();	string getPacketName() const throw() { return "GCSelectQuestID"; }	string toString() const throw();public:	bool		empty() const { return m_QuestIDList.empty(); }	QuestID_t	popQuestID() { QuestID_t qID = m_QuestIDList.front(); m_QuestIDList.pop_front(); return qID; }	private:	list<QuestID_t>	m_QuestIDList;};//////////////////////////////////////////////////////////////////////////////// class GCSelectQuestIDFactory;//////////////////////////////////////////////////////////////////////////////class GCSelectQuestIDFactory : public PacketFactory {public:	Packet* createPacket() throw() { return new GCSelectQuestID(); }	string getPacketName() const throw() { return "GCSelectQuestID"; }	PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_SELECT_QUEST_ID; }	PacketSize_t getPacketMaxSize() const throw()	{		return szBYTE			 + szQuestID * maxQuestNum;	}};//////////////////////////////////////////////////////////////////////////////// class GCSelectQuestIDHandler;//////////////////////////////////////////////////////////////////////////////class GCSelectQuestIDHandler {public:	static void execute(GCSelectQuestID* pPacket, Player* pPlayer) throw(ProtocolException, Error);};#endif

⌨️ 快捷键说明

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