📄 gcchangeshape.h
字号:
//////////////////////////////////////////////////////////////////////// // Filename : GCChangeShape.h // Written By : elca@ewestsoft.com// Description : // //////////////////////////////////////////////////////////////////////#ifndef __GC_CHANGE_SHAPE_H__#define __GC_CHANGE_SHAPE_H__// include files#include "Types.h"#include "Exception.h"#include "Packet.h"#include "PacketFactory.h"#include <list>#define SHAPE_FLAG_QUEST 0x01////////////////////////////////////////////////////////////////////////// class GCChangeShape;//// 霸烙 辑滚俊辑 漂沥 荤侩磊啊 框流看促绰 沥焊甫 努扼捞攫飘肺 焊郴临 // 锭 荤侩窍绰 菩哦 按眉捞促.(CreatureID,X,Y,DIR) 阑 器窃茄促.////////////////////////////////////////////////////////////////////////class GCChangeShape : public Packet {public : // constructor GCChangeShape() throw(); // destructor ~GCChangeShape() 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_CHANGE_SHAPE; } // get packet's body size // 弥利拳矫, 固府 拌魂等 沥荐甫 荤侩茄促. PacketSize_t getPacketSize() const throw() { return szObjectID + szBYTE + szItemType + szOptionType + szSpeed + szBYTE ; } // get packet's name string getPacketName() const throw() { return "GCChangeShape"; } // get packet's debug string string toString() const throw(); // get Object ID ObjectID_t getObjectID() const throw() { return m_ObjectID; } void setObjectID(ObjectID_t objectID) throw() { m_ObjectID = objectID; } // get/set ItemClass BYTE getItemClass() const throw() { return m_ItemClass; } void setItemClass(BYTE ItemClass) throw() { m_ItemClass = ItemClass; } // get / set ItemType ItemType_t getItemType() const throw() { return m_ItemType; } void setItemType(ItemType_t ItemType) throw() { m_ItemType = ItemType ; } // get / set OptionType void setOptionType(OptionType_t optionType) throw() { m_OptionType = optionType; } OptionType_t getOptionType() const throw() { return m_OptionType; } // get / set AttackSpeed Speed_t getAttackSpeed() const throw() { return m_AttackSpeed; } void setAttackSpeed(Speed_t AttackSpeed) throw() { m_AttackSpeed = AttackSpeed; } BYTE getFlag() const throw() { return m_Flag; } void setFlag( BYTE flag ) throw() { m_Flag = flag; }private : // 农府贸 酒捞叼 ObjectID_t m_ObjectID; // Item Class BYTE m_ItemClass; // Item Type ItemType_t m_ItemType; // Option Type OptionType_t m_OptionType; // Attack Speed Speed_t m_AttackSpeed; BYTE m_Flag;};////////////////////////////////////////////////////////////////////////// class GCChangeShapeFactory;//// Factory for GCChangeShape////////////////////////////////////////////////////////////////////////class GCChangeShapeFactory : public PacketFactory {public : // constructor GCChangeShapeFactory() throw() {} // destructor virtual ~GCChangeShapeFactory() throw() {} public : // create packet Packet* createPacket() throw() { return new GCChangeShape(); } // get packet name string getPacketName() const throw() { return "GCChangeShape"; } // get packet id PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_CHANGE_SHAPE; } // get Packet Max Size PacketSize_t getPacketMaxSize() const throw() { return szObjectID + szBYTE + szItemType + szOptionType + szSpeed + szBYTE; }};////////////////////////////////////////////////////////////////////////// class GCChangeShapeHandler;////////////////////////////////////////////////////////////////////////class GCChangeShapeHandler {public : // execute packet's handler static void execute(GCChangeShape* pGCChangeShape, Player* pPlayer) throw(Error);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -