⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gcskilltotileok6.h

📁 dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 ,luascript v4.0 support
💻 H
字号:
//////////////////////////////////////////////////////////////////////// // Filename    : GCSkillToTileOK6.h // Written By  : elca@ewestsoft.com// Description : 扁贱俊 寸沁绰单 荤侩磊绰 杭 荐 绝绰 磊啊 罐绰 packet //////////////////////////////////////////////////////////////////////#ifndef __GC_SKILL_TO_TILE_OK_6_H__#define __GC_SKILL_TO_TILE_OK_6_H__// include files#include "Types.h"#include "Exception.h"#include "ModifyInfo.h"#include "PacketFactory.h"////////////////////////////////////////////////////////////////////////// class GCSkillToTileOK6;//////////////////////////////////////////////////////////////////////////class GCSkillToTileOK6 : public ModifyInfo {public :		// constructor	GCSkillToTileOK6() throw();		// destructor	~GCSkillToTileOK6() 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_TILE_OK_6; }		// get packet's body size	// 弥利拳矫, 固府 拌魂等 沥荐甫 荤侩茄促.	PacketSize_t getPacketSize() const throw() { return szCoord*2 + szSkillType + szCoord*2 + szRange + szDuration + 			szBYTE + szObjectID* m_CListNum + szBYTE + ModifyInfo::getPacketSize(); }         //CListNum, SListNum, ListEle* CListNum, ListEle* SListNum* 2 	// get packet's name	string getPacketName() const throw() { return "GCSkillToTileOK6"; }		// get packet's debug string	string toString() const throw();	// get orign x, y	Coord_t getOrgX() const throw() { return m_OrgX;}	Coord_t getOrgY() const throw() { return m_OrgY;}	// set origin x, y	void setOrgXY(Coord_t X, Coord_t Y) throw() { m_OrgX = X; m_OrgY = Y;}		// get / set SkillType	SkillType_t getSkillType() const throw() { return m_SkillType; }	void setSkillType(SkillType_t SkillType) throw() { m_SkillType = SkillType; }	// 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 Range	Range_t getRange() const throw() { return m_Range; }	void setRange(Range_t r) throw() { m_Range = r; }	// get / set Duration	Duration_t getDuration() const throw() { return m_Duration; }	void setDuration(Duration_t Duration) throw() { m_Duration = Duration; }    // 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; }	BYTE getGrade() const throw() { return m_Grade; }	void setGrade( BYTE grade ) throw() { m_Grade = grade; }private :		// ObjectID	Coord_t m_OrgX, m_OrgY;	// 扁贱 荤侩磊狼 困摹.	// SkillType	SkillType_t m_SkillType;	// X, Y	Coord_t m_X;	Coord_t m_Y;	// Range	Range_t m_Range;	// Duration	Duration_t m_Duration;	// Creature List Num	BYTE m_CListNum;	// Creature List	list<ObjectID_t> m_CList;	BYTE m_Grade;};////////////////////////////////////////////////////////////////////////// class GCSkillToTileOK6Factory;//// Factory for GCSkillToTileOK6////////////////////////////////////////////////////////////////////////class GCSkillToTileOK6Factory : public PacketFactory {public :		// constructor	GCSkillToTileOK6Factory() throw() {}		// destructor	virtual ~GCSkillToTileOK6Factory() throw() {}	public :		// create packet	Packet* createPacket() throw() { return new GCSkillToTileOK6(); }	// get packet name	string getPacketName() const throw() { return "GCSkillToTileOK6"; }		// get packet id	PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_SKILL_TO_TILE_OK_6; }	// get Pakcet Max Size	PacketSize_t getPacketMaxSize() const throw() { return szCoord*2 + szSkillType + szCoord*2 + szRange + szDuration + 			szBYTE + szWORD + szObjectID + szBYTE + ModifyInfo::getPacketMaxSize(); }};////////////////////////////////////////////////////////////////////////// class GCSkillToTileOK6Handler;////////////////////////////////////////////////////////////////////////class GCSkillToTileOK6Handler {public :	// execute packet's handler	static void execute(GCSkillToTileOK6* pGCSkillToTileOK6, Player* pPlayer) throw(Error);};#endif

⌨️ 快捷键说明

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