📄 gcthrowbombok2.h
字号:
//////////////////////////////////////////////////////////////////////// // Filename : GCThrowBombOK2.h // Written By : elca@ewestsoft.com// Description : 扁贱俊 寸茄 磊啊 罐绰 菩哦// //////////////////////////////////////////////////////////////////////#ifndef __GC_THROW_BOMB_OK_2_H__#define __GC_THROW_BOMB_OK_2_H__// include files#include "Types.h"#include "Exception.h"#include "ModifyInfo.h"#include "PacketFactory.h"////////////////////////////////////////////////////////////////////////// class GCThrowBombOK2;//// 霸烙辑滚俊辑 努扼捞攫飘肺 磊脚狼 扁贱捞 己傍阑 舅妨林扁 困茄 努贰胶////////////////////////////////////////////////////////////////////////class GCThrowBombOK2 : public ModifyInfo {public : // constructor GCThrowBombOK2() throw(); // destructor ~GCThrowBombOK2() 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_THROW_BOMB_OK_2; } // get packet's body size // 弥利拳矫, 固府 拌魂等 沥荐甫 荤侩茄促. PacketSize_t getPacketSize() const throw() { return szObjectID + szCoord*2 + szDir + szItemType + szBYTE + szObjectID* m_CListNum + ModifyInfo::getPacketSize(); } //CListNum, SListNum, ListEle* CListNum, ListEle* SListNum* 2 // get packet's name string getPacketName() const throw() { return "GCThrowBombOK2"; } // get packet's debug string string toString() const throw(); // get / set ObjectID ObjectID_t getObjectID() const throw() { return m_ObjectID; } void setObjectID(ObjectID_t ObjectID) throw() { m_ObjectID = ObjectID; } // get / set X Coord_t getX() const throw() { return m_X; } void setX(Coord_t X) throw() { m_X = X; } // get / set Y Coord_t getY() const throw() { return m_Y; } void setY(Coord_t Y) throw() { m_Y = Y; } // get / set Dir Dir_t getDir() const throw() { return m_Dir; } void setDir(Dir_t r) throw() { m_Dir = r; } void setXYDir(Coord_t X, Coord_t Y, Dir_t R) throw() { m_X = X; m_Y = Y; m_Dir = R;} ItemType_t getItemType() const throw() { return m_ItemType;} void setItemType(ItemType_t i) throw() { m_ItemType = i;} // get / set Creature List Number BYTE getCListNum() const throw() { return m_CListNum; } void setCListNum(BYTE CListNum) throw() { m_CListNum = CListNum; } // add / delete Creature List void addCListElement(ObjectID_t ObjectID) throw(); // Clear Creature List void clearCList() throw() { m_CList.clear(); m_CListNum = 0; } // pop front Element in Status List ObjectID_t popCListElement() throw() { ObjectID_t CreatureList = m_CList.front(); m_CList.pop_front(); return CreatureList; }private : // ObjectID ObjectID_t m_ObjectID; // X, Y Coord_t m_X; Coord_t m_Y; // Dir Dir_t m_Dir; ItemType_t m_ItemType; // Creature List Num BYTE m_CListNum; // Creature List list<ObjectID_t> m_CList;};////////////////////////////////////////////////////////////////////////// class GCThrowBombOK2Factory;//// Factory for GCThrowBombOK2////////////////////////////////////////////////////////////////////////class GCThrowBombOK2Factory : public PacketFactory {public : // constructor GCThrowBombOK2Factory() throw() {} // destructor virtual ~GCThrowBombOK2Factory() throw() {} public : // create packet Packet* createPacket() throw() { return new GCThrowBombOK2(); } // get packet name string getPacketName() const throw() { return "GCThrowBombOK2"; } // get packet id PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_THROW_BOMB_OK_2; } // get Pakcet Max Size PacketSize_t getPacketMaxSize() const throw() { return szObjectID + szCoord*2 + szDir + szItemType + szBYTE + szWORD + szObjectID + ModifyInfo::getPacketMaxSize(); }};////////////////////////////////////////////////////////////////////////// class GCThrowBombOK2Handler;////////////////////////////////////////////////////////////////////////class GCThrowBombOK2Handler {public : // execute packet's handler static void execute(GCThrowBombOK2* pGCThrowBombOK2, Player* pPlayer) throw(Error);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -