cgtakeoutgood.h

来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 64 行

H
64
字号
//////////////////////////////////////////////////////////////////////////////// Filename    : CGTakeOutGood.h // Written By  : reiot@ewestsoft.com// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __CG_TAKE_OUT_GOOD_H__#define __CG_TAKE_OUT_GOOD_H__#include "Packet.h"#include "PacketFactory.h"//////////////////////////////////////////////////////////////////////////////// class CGTakeOutGood;//////////////////////////////////////////////////////////////////////////////class CGTakeOutGood : public Packet {public:	CGTakeOutGood() throw();	~CGTakeOutGood() 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_CG_TAKE_OUT_GOOD; }	PacketSize_t getPacketSize() const throw() { return szObjectID; }	string getPacketName() const throw() { return "CGTakeOutGood"; }	string toString() const throw();	public:	ObjectID_t getObjectID() throw() { return m_ObjectID; }	void setObjectID(ObjectID_t ObjectID) throw() { m_ObjectID = ObjectID; }private :	ObjectID_t m_ObjectID;};//////////////////////////////////////////////////////////////////////////////// class CGTakeOutGoodFactory;//////////////////////////////////////////////////////////////////////////////class CGTakeOutGoodFactory : public PacketFactory {public:	Packet* createPacket() throw() { return new CGTakeOutGood(); }	string getPacketName() const throw() { return "CGTakeOutGood"; }	PacketID_t getPacketID() const throw() { return Packet::PACKET_CG_TAKE_OUT_GOOD; }	PacketSize_t getPacketMaxSize() const throw() { return szObjectID; }};//////////////////////////////////////////////////////////////////////////////// class CGTakeOutGoodHandler;//////////////////////////////////////////////////////////////////////////////class CGTakeOutGoodHandler {public:	static void execute(CGTakeOutGood* pPacket, Player* player) throw(ProtocolException, Error);};#endif

⌨️ 快捷键说明

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