effectpoisonstorm.h
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 65 行
H
65 行
#ifndef __EFFECT_POISON_STORM__#define __EFFECT_POISON_STORM__#include "Effect.h"#include "EffectLoader.h"class EffectPoisonStorm : public Effect{public: EffectPoisonStorm(Zone* pZone, ZoneCoord_t zoneX, ZoneCoord_t zoneY) throw(Error); EffectClass getEffectClass() const throw() { return EFFECT_CLASS_POISON_STORM; } 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(Item* pItem) throw(Error) {} void unaffect(Zone* pZone, ZoneCoord_t x, ZoneCoord_t y, Object* pObject) throw(Error); string toString() const throw();public: int getDamage(void) const { return m_Damage; } void setDamage(int damage) { m_Damage = damage; } Turn_t getTick() const { return m_Tick; } void setTick(Turn_t Tick) { m_Tick = Tick; } int getLevel(void) const { return m_Level; } void setLevel(int level) { m_Level = level; } 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_Damage; // EffectPoisonStorm Damage; Turn_t m_Tick; // EffectPoisonStorm turn; int m_Level; // EffectPoisonStorm level; Duration_t m_Duration; // EffectPoisonStorm Duration; Duration_t m_StormDuration; // PoisonStorm Effect 瘤加 矫埃 ObjectID_t m_UserObjectID; bool m_bVampire;};class EffectPoisonStormLoader : public EffectLoader{public: virtual Effect::EffectClass getEffectClass() const throw() { return Effect::EFFECT_CLASS_POISON_STORM; } virtual string getEffectClassName() const throw() { return "EffectPoisonStorm"; }public: virtual void load(Creature* pCreature) throw(Error) {}};extern EffectPoisonStormLoader* g_pEffectPoisonStormLoader;#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?