📄 gcsearchmotorcycleok.h
字号:
//--------------------------------------------------------------------------------// // Filename : GCSearchMotorcycleOK.h // Written By : 辫己刮// Description : 敲饭捞绢俊霸 辑滚 螟狼 惑痢 滚傈阑 舅妨临 锭 静捞绰 菩哦捞促.// //--------------------------------------------------------------------------------#ifndef __GC_SEARCH_MOTORCYCLE_OK_H__#define __GC_SEARCH_MOTORCYCLE_OK_H__// include files#include "Packet.h"#include "PacketFactory.h"//--------------------------------------------------------------------------------//// class GCSearchMotorcycleOK;////--------------------------------------------------------------------------------class GCSearchMotorcycleOK : public Packet {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_SEARCH_MOTORCYCLE_OK; } PacketSize_t getPacketSize() const throw() { return szZoneID+szCoord*2; } string getPacketName() const throw() { return "GCSearchMotorcycleOK"; } string toString() const throw();public : ZoneID_t getZoneID(void) const throw() { return m_ZoneID;} Coord_t getX(void) const throw() { return m_ZoneX;} Coord_t getY(void) const throw() { return m_ZoneY;} void setZoneID(ZoneID_t id) throw() { m_ZoneID = id;} void setX(Coord_t x) throw() { m_ZoneX = x;} void setY(Coord_t y) throw() { m_ZoneY = y;}private : ZoneID_t m_ZoneID; Coord_t m_ZoneX; Coord_t m_ZoneY;};////////////////////////////////////////////////////////////////////////// class GCSearchMotorcycleOKFactory;//// Factory for GCSearchMotorcycleOK////////////////////////////////////////////////////////////////////////class GCSearchMotorcycleOKFactory : public PacketFactory {public : // create packet Packet* createPacket() throw() { return new GCSearchMotorcycleOK(); } // get packet name string getPacketName() const throw() { return "GCSearchMotorcycleOK"; } // get packet id PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_SEARCH_MOTORCYCLE_OK; } // get packet's max body size // *OPTIMIZATION HINT* // const static GCSearchMotorcycleOKPacketMaxSize 甫 沥狼, 府畔窍扼. PacketSize_t getPacketMaxSize() const throw() { return szZoneID + szCoord*2; }};////////////////////////////////////////////////////////////////////////// class GCSearchMotorcycleOKHandler;////////////////////////////////////////////////////////////////////////class GCSearchMotorcycleOKHandler { public : // execute packet's handler static void execute(GCSearchMotorcycleOK* pPacket, Player* pPlayer) throw(ProtocolException, Error);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -