📄 effecthprecovery.h
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : EffectHPRecovery.h// Written by : elca// Description ://////////////////////////////////////////////////////////////////////////////#ifndef __EFFECT_HP_RECOVERY_H__#define __EFFECT_HP_RECOVERY_H__#include "Effect.h"//////////////////////////////////////////////////////////////////////////////// class EffectHPRecovery;//////////////////////////////////////////////////////////////////////////////class EffectHPRecovery : public Effect {public: EffectHPRecovery() throw(Error); EffectHPRecovery(Zone* pZone, ZoneCoord_t x, ZoneCoord_t y, Creature* pCreature, Turn_t delay) throw(Error); virtual ~EffectHPRecovery() throw(Error); public: virtual EffectClass getEffectClass() const throw() { return EFFECT_CLASS_HP_RECOVERY; } // OBJECT_PRIORITY_NONE 扼绰 舵篮, 鸥老俊 甸绢啊辑绰 救等促绰 舵捞促. virtual ObjectPriority getObjectPriority() const throw() { return OBJECT_PRIORITY_NONE; } virtual void affect() throw(Error); virtual void affect(Creature* pCreature) throw(Error); virtual void affect(Zone* pZone, ZoneCoord_t x, ZoneCoord_t y, Object* pTarget) throw(Error); virtual void unaffect() throw(Error); virtual void unaffect(Creature* pCreature) throw(Error); virtual void unaffect(Zone* pZone, ZoneCoord_t x, ZoneCoord_t y, Object* pTarget) throw(Error); void unaffect(Item* pItem) throw(Error) {} void create(const string & ownerID) throw(Error) {} void save(const string & ownerID) throw(Error) {} void destroy(const string & ownerID) throw(Error) {} virtual string toString() const throw();public: void setDelay(Turn_t delay) throw() { m_Delay = delay; } Turn_t getDelay() const throw() { return m_Delay; } void setHPQuantity(HP_t Quantity) throw() { m_HPQuantity = Quantity; } HP_t getHPQuantity() const throw() { return m_HPQuantity; } void setPeriod(Turn_t Period) throw() { m_Period = Period; } Turn_t getPeriod() const throw() { return m_Period; }private: Turn_t m_Delay; // 割 檬付促 TICK捞 惯悼 登绰啊. HP_t m_HPQuantity; // 肯丰矫 雀汗樊 Turn_t m_Period; // 雀汗捞 肯丰登绰单 吧府绰 矫埃.};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -