📄 gcmprecoverystart.h
字号:
//////////////////////////////////////////////////////////////////////// // Filename : GCMPRecoveryStart.h // Written By : elca@ewestsoft.com// Description : 扁贱捞 己傍沁阑锭 焊郴绰 菩哦阑 困茄 努贰胶 沥狼// //////////////////////////////////////////////////////////////////////#ifndef __GC_MP_RECOVERY_START_H__#define __GC_MP_RECOVERY_START_H__// include files#include "Types.h"#include "Exception.h"#include "Packet.h"#include "PacketFactory.h"////////////////////////////////////////////////////////////////////////// class GCMPRecoveryStart;//// 霸烙辑滚俊辑 努扼捞攫飘肺 磊脚狼 扁贱捞 己傍阑 舅妨林扁 困茄 努贰胶////////////////////////////////////////////////////////////////////////class GCMPRecoveryStart : public Packet {public : // constructor GCMPRecoveryStart() throw(); // destructor ~GCMPRecoveryStart() throw(); 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_MP_RECOVERY_START; } // get packet's body size // 弥利拳矫, 固府 拌魂等 沥荐甫 荤侩茄促. PacketSize_t getPacketSize() const throw() { return szBYTE + szMP + szMP; } // get packet's name string getPacketName() const throw() { return "GCMPRecoveryStart"; } // get packet's debug string string toString() const throw(); // get / set Delay BYTE getDelay() const throw() { return m_Delay; } void setDelay(BYTE Delay) throw() { m_Delay = Delay; } // get / set Period MP_t getPeriod() const throw() { return m_Period; } void setPeriod(MP_t Period) throw() { m_Period = Period; } // get / set Quantity MP_t getQuantity() const throw() { return m_Quantity; } void setQuantity(MP_t Quantity) throw() { m_Quantity = Quantity; }private : // 茄 畔 BYTE m_Delay; // 割锅 MP_t m_Period; // 倔付唱 MP_t m_Quantity;};////////////////////////////////////////////////////////////////////////// class GCMPRecoveryStartFactory;//// Factory for GCMPRecoveryStart////////////////////////////////////////////////////////////////////////class GCMPRecoveryStartFactory : public PacketFactory {public : // constructor GCMPRecoveryStartFactory() throw() {} // destructor virtual ~GCMPRecoveryStartFactory() throw() {} public : // create packet Packet* createPacket() throw() { return new GCMPRecoveryStart(); } // get packet name string getPacketName() const throw() { return "GCMPRecoveryStart"; } // get packet id PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_MP_RECOVERY_START; } // get Packet Max Size PacketSize_t getPacketMaxSize() const throw() { return szBYTE + szMP + szMP; }};////////////////////////////////////////////////////////////////////////// class GCMPRecoveryStartHandler;////////////////////////////////////////////////////////////////////////class GCMPRecoveryStartHandler {public : // execute packet's handler static void execute(GCMPRecoveryStart* pGCMPRecoveryStart, Player* pPlayer) throw(Error);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -