📄 gcwarlist.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 + -