📄 gcskilltoinventoryok1.h
字号:
//////////////////////////////////////////////////////////////////////// // Filename : GCSkillToInventoryOK1.h // Written By : elca@ewestsoft.com// Description : 扁贱捞 己傍沁阑锭 焊郴绰 菩哦阑 困茄 努贰胶 沥狼// //////////////////////////////////////////////////////////////////////#ifndef __GC_SKILL_TO_INVENTORY_OK_1_H__#define __GC_SKILL_TO_INVENTORY_OK_1_H__// include files#include "Types.h"#include "Exception.h"#include "ModifyInfo.h"#include "PacketFactory.h"////////////////////////////////////////////////////////////////////////// class GCSkillToInventoryOK1;//// 霸烙辑滚俊辑 努扼捞攫飘肺 磊脚狼 扁贱捞 己傍阑 舅妨林扁 困茄 努贰胶////////////////////////////////////////////////////////////////////////class GCSkillToInventoryOK1 : public ModifyInfo {public : // constructor GCSkillToInventoryOK1() throw(); // destructor ~GCSkillToInventoryOK1() 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_SKILL_TO_INVENTORY_OK_1; } // get packet's body size // 弥利拳矫, 固府 拌魂等 沥荐甫 荤侩茄促. PacketSize_t getPacketSize() const throw() { return szSkillType + szObjectID + szItemType + szCEffectID + szCoordInven* 2 + szDuration + ModifyInfo::getPacketSize(); } // get packet's name string getPacketName() const throw() { return "GCSkillToInventoryOK1"; } // get packet's debug string string toString() const throw(); // get / set SkillType SkillType_t getSkillType() const throw() { return m_SkillType; } void setSkillType(SkillType_t SkillType) throw() { m_SkillType = SkillType; } // get / set ObjectID ObjectID_t getObjectID() const throw() { return m_ObjectID; } void setObjectID(ObjectID_t ObjectID) throw() { m_ObjectID = ObjectID; } // get / set ItemType ItemType_t getItemType() const throw() { return m_ItemType; } void setItemType(ItemType_t ItemType) throw() { m_ItemType = ItemType; } // get / set CEffectID CEffectID_t getCEffectID() const throw() { return m_CEffectID; } void setCEffectID(CEffectID_t CEffectID) throw() { m_CEffectID = CEffectID; } // get / set Duration Duration_t getDuration() const throw() { return m_Duration; } void setDuration(Duration_t Duration) throw() { m_Duration = Duration; } // get / set X, Y CoordInven_t getX() { return m_X; } void setX(Coord_t X) { m_X = X; } CoordInven_t getY() { return m_Y; } void setY(Coord_t Y) { m_Y = Y; }private : // SkillType SkillType_t m_SkillType; // ObjectID ObjectID_t m_ObjectID; // ItemType ItemType_t m_ItemType; // CEffectID CEffectID_t m_CEffectID; // Duration Duration_t m_Duration; // Inventory X, Y Position CoordInven_t m_X; CoordInven_t m_Y;};////////////////////////////////////////////////////////////////////////// class GCSkillToInventoryOK1Factory;//// Factory for GCSkillToInventoryOK1////////////////////////////////////////////////////////////////////////class GCSkillToInventoryOK1Factory : public PacketFactory {public : // constructor GCSkillToInventoryOK1Factory() throw() {} // destructor virtual ~GCSkillToInventoryOK1Factory() throw() {} public : // create packet Packet* createPacket() throw() { return new GCSkillToInventoryOK1(); } // get packet name string getPacketName() const throw() { return "GCSkillToInventoryOK1"; } // get packet id PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_SKILL_TO_INVENTORY_OK_1; } // get Packet Max Size PacketSize_t getPacketMaxSize() const throw() { return szSkillType + szObjectID + szItemType + szCEffectID + szCoord* 2 + szDuration + ModifyInfo::getPacketMaxSize(); }};////////////////////////////////////////////////////////////////////////// class GCSkillToInventoryOK1Handler;////////////////////////////////////////////////////////////////////////class GCSkillToInventoryOK1Handler {public : // execute packet's handler static void execute(GCSkillToInventoryOK1* pGCSkillToInventoryOK1, Player* pPlayer) throw(Error);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -