cgselectwaypoint.h
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 71 行
H
71 行
//////////////////////////////////////////////////////////////////////////////// Filename : CGSelectWayPoint.h // Written By : excel96// Description : // 浇饭捞绢啊 俺牢侩 器呕阑 捞侩秦 促弗 镑栏肺 捞悼窍绊磊 且 锭 焊郴绰 菩哦//////////////////////////////////////////////////////////////////////////////#ifndef __CG_SELECT_WAYPOINT_H__#define __CG_SELECT_WAYPOINT_H__#include "Types.h"#include "Exception.h"#include "Packet.h"#include "PacketFactory.h"//////////////////////////////////////////////////////////////////////////////// class CGSelectWayPoint;//////////////////////////////////////////////////////////////////////////////class CGSelectWayPoint : 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_CG_SELECT_WAYPOINT; } PacketSize_t getPacketSize() const throw() { return szZoneID + szCoord*2; } string getPacketName() const throw() { return "CGSelectWayPoint"; } string toString() const throw();public: ZoneID_t getZoneID() const throw() { return m_ZoneID; } void setZoneID(ZoneID_t ZoneID) throw() { m_ZoneID = ZoneID; } Coord_t getX(void) const { return m_X; } void setX(Coord_t X) { m_X = X; } Coord_t getY(void) const { return m_Y; } void setY(Coord_t Y) { m_Y = Y; }private: ZoneID_t m_ZoneID; // 啊绊磊 窍绰 粮狼 ID Coord_t m_X; // 啊绊磊 窍绰 粮狼 谅钎 X Coord_t m_Y; // 啊绊磊 窍绰 粮狼 谅钎 Y};//////////////////////////////////////////////////////////////////////////////// class CGSelectWayPointFactory;//////////////////////////////////////////////////////////////////////////////class CGSelectWayPointFactory : public PacketFactory { Packet* createPacket() throw() { return new CGSelectWayPoint(); } string getPacketName() const throw() { return "CGSelectWayPoint"; } PacketID_t getPacketID() const throw() { return Packet::PACKET_CG_SELECT_WAYPOINT; } PacketSize_t getPacketMaxSize() const throw() { return szZoneID + szCoord*2; }};//////////////////////////////////////////////////////////////////////////////// class CGSelectWayPointHandler;//////////////////////////////////////////////////////////////////////////////class CGSelectWayPointHandler {public: static void execute(CGSelectWayPoint* pCGSelectWayPoint, Player* pPlayer) throw(Error);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?