gcaddgeartoinventory.h

来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 74 行

H
74
字号
//////////////////////////////////////////////////////////////////////////////// Filename    : GCAddGearToInventory.h // Written By  : crazydog// Description : // Skill ShieldStrike俊 狼秦 惯积. shield甫 厘馒芒俊辑 inventory肺 焊辰促.//////////////////////////////////////////////////////////////////////////////#ifndef __GC_ADD_GEAR_TO_INVENTORY_H__#define __GC_ADD_GEAR_TO_INVENTORY_H__#include "Packet.h"#include "PacketFactory.h"//////////////////////////////////////////////////////////////////////////////// class GCAddGearToInventory;//////////////////////////////////////////////////////////////////////////////class GCAddGearToInventory : public Packet {public:	GCAddGearToInventory() throw();	~GCAddGearToInventory() 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_ADD_GEAR_TO_INVENTORY; }	PacketSize_t getPacketSize() const throw() { return szSlotID + szCoordInven + szCoordInven; }	string getPacketName() const throw() { return "GCAddGearToInventory"; }	string toString() const throw();	public:	SlotID_t getSlotID() throw() { return m_SlotID; }	void setSlotID(SlotID_t SlotID) throw() { m_SlotID = SlotID; }	CoordInven_t getInvenX() const throw() { return m_InvenX; }	void setInvenX(CoordInven_t InvenX) throw() { m_InvenX = InvenX; }	CoordInven_t getInvenY() const throw() { return m_InvenY; }	void setInvenY(CoordInven_t InvenY) { m_InvenY = InvenY; }private:	SlotID_t     m_SlotID; // wear part ID	CoordInven_t m_InvenX; // Inventory狼 X, Y 谅钎.	CoordInven_t m_InvenY;};//////////////////////////////////////////////////////////////////////////////// class GCAddGearToInventoryFactory;//////////////////////////////////////////////////////////////////////////////class GCAddGearToInventoryFactory : public PacketFactory {public:	Packet* createPacket() throw() { return new GCAddGearToInventory(); }	string getPacketName() const throw() { return "GCAddGearToInventory"; }	PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_ADD_GEAR_TO_INVENTORY; }	PacketSize_t getPacketMaxSize() const throw() { return szSlotID + szCoordInven + szCoordInven; }};//////////////////////////////////////////////////////////////////////////////// class GCAddGearToInventoryHandler;//////////////////////////////////////////////////////////////////////////////class GCAddGearToInventoryHandler {public:	static void execute(GCAddGearToInventory* pPacket, Player* player) throw(ProtocolException, Error);};#endif

⌨️ 快捷键说明

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