📄 effectdarkbluepoison.h
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : EffectDarkBluePoison.h// Written by : excel96// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __EFFECT_DARKBLUE_POISON__#define __EFFECT_DARKBLUE_POISON__#include "Effect.h"#include "EffectLoader.h"#include "Tile.h"//////////////////////////////////////////////////////////////////////////////// class EffectDarkBluePoison//////////////////////////////////////////////////////////////////////////////class EffectDarkBluePoison : public Effect {public: EffectDarkBluePoison(Creature* pCreature) throw(Error);public: EffectClass getEffectClass() const throw() { return EFFECT_CLASS_DARKBLUE_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: MP_t getDamage(void) const { return m_Damage; } void setDamage(MP_t Damage) { m_Damage = Damage; } int getLevel(void) const { return m_Level; } void setLevel(int l) { m_Level = l;} void setTick(Turn_t Tick) throw() { m_Tick = Tick; } Turn_t getTick() const throw() { return m_Tick; } Duration_t getDuration() { return m_Duration;} void setDuration(Duration_t d) { m_Duration = d;} bool affectCreature(Creature* pCreature, bool bAffectByMove) throw(Error);private: int m_Level; MP_t m_Damage; Duration_t m_Duration; Turn_t m_Tick;};#endif // __EFFECT_DARKBLUE_POISON__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -