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

📄 effectgreenpoison.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : EffectGreenPoison.h// Written by  : crazydog// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __EFFECT_GREEN_POISON__#define __EFFECT_GREEN_POISON__#include "Effect.h"#include "EffectLoader.h"#include "Tile.h"//////////////////////////////////////////////////////////////////////////////// class EffectGreenPoison//////////////////////////////////////////////////////////////////////////////class EffectGreenPoison : public Effect {public:	EffectGreenPoison(Zone*, ZoneCoord_t, ZoneCoord_t) throw(Error);public:    EffectClass getEffectClass() const throw() { return EFFECT_CLASS_GREEN_POISON; }	void affect() throw(Error){}	void affect(Creature* pCreature) throw(Error);	void affect(Zone* pZone, ZoneCoord_t x, ZoneCoord_t y, Object* pObject ) throw(Error);	void unaffect() throw(Error);	void unaffect(Creature* pCreature) throw(Error) {};	void unaffect(Zone* pZone, ZoneCoord_t x, ZoneCoord_t y, Object* pObject ) throw(Error);	void unaffect(Item* pItem) throw(Error) {}	string toString() const throw();public:	void setLevel(Attr_t l) throw(Error) { m_Level = l;}	void setDamage(Damage_t d) throw(Error) { m_Damage = d;}	void setDuration(Duration_t d) throw(Error) { m_Duration = d;}	Duration_t getDuration() const throw(Error) { return m_Duration;}	void setUserObjectID(ObjectID_t oid) throw() { m_UserObjectID = oid; }	ObjectID_t getUserObjectID() const throw() { return m_UserObjectID; }	void setVampire( bool bVampire = true ) { m_bVampire = bVampire; }	bool isVampire() const { return m_bVampire; }	bool affectCreature(Creature* pCreature, bool bAffectByMove) throw(Error);private:	int        m_Level;    // 付过狼 MagicLevel	Damage_t   m_Damage;   // 付过狼 单固瘤	Duration_t m_Duration; // 付过狼 瘤加 矫埃	ObjectID_t m_UserObjectID;	bool       m_bVampire;};class EffectGreenPoisonLoader : public EffectLoader{public:	virtual Effect::EffectClass getEffectClass() const throw() { return Effect::EFFECT_CLASS_GREEN_POISON; }	virtual string getEffectClassName() const throw() { return "EffectGreenPoison"; }public:	virtual void load(Creature* pCreature) throw(Error) {}	virtual void load(Zone* pZone) throw(Error);};extern EffectGreenPoisonLoader* g_pEffectGreenPoisonLoader;#endif // __EFFECT_GREEN_POISON__

⌨️ 快捷键说明

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