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

📄 gcaddeffect.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : GCAddEffect.h // Written By  : elca@ewestsoft.com// Description : // 扁贱捞 己傍沁阑锭 焊郴绰 菩哦阑 困茄 努贰胶 沥狼//////////////////////////////////////////////////////////////////////////////#ifndef __GC_ADD_EFFECT_H__#define __GC_ADD_EFFECT_H__#include "Types.h"#include "Exception.h"#include "Packet.h"#include "PacketFactory.h"//////////////////////////////////////////////////////////////////////////////// class GCAddEffect;// 霸烙辑滚俊辑 努扼捞攫飘肺 磊脚狼 扁贱捞 己傍阑 舅妨林扁 困茄 努贰胶//////////////////////////////////////////////////////////////////////////////class GCAddEffect : public Packet {public:	GCAddEffect() throw();	~GCAddEffect() 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_EFFECT; }	PacketSize_t getPacketSize() const throw() { return szObjectID + szEffectID + szDuration; }	string getPacketName() const throw() { return "GCAddEffect"; }	string toString() const throw();public:	EffectID_t getEffectID() const throw() { return m_EffectID; }	void setEffectID(EffectID_t e) throw() { m_EffectID = e; }		ObjectID_t getObjectID() const throw() { return m_ObjectID; }	void setObjectID(ObjectID_t o) throw() { m_ObjectID = o; }	Duration_t getDuration() const throw() { return m_Duration; }	void setDuration(Duration_t d) throw() { m_Duration = d; }	private :	ObjectID_t m_ObjectID;	EffectID_t m_EffectID;	Duration_t m_Duration;};//////////////////////////////////////////////////////////////////////////////// class GCAddEffectFactory;//////////////////////////////////////////////////////////////////////////////class GCAddEffectFactory : public PacketFactory {public :	GCAddEffectFactory() throw() {}	virtual ~GCAddEffectFactory() throw() {}	public:	Packet* createPacket() throw() { return new GCAddEffect(); }	string getPacketName() const throw() { return "GCAddEffect"; }	PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_ADD_EFFECT; }	PacketSize_t getPacketMaxSize() const throw() { return szObjectID + szEffectID + szDuration; }};//////////////////////////////////////////////////////////////////////////////// class GCAddEffectHandler;//////////////////////////////////////////////////////////////////////////////class GCAddEffectHandler {public:	static void execute(GCAddEffect* pGCAddEffect, Player* pPlayer) throw(Error);};#endif

⌨️ 快捷键说明

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