📄 effectrelictable.h
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : EffectRelicTable.h// Written by : // Description : Doom俊 狼茄 规绢仿 窍碍 effect//////////////////////////////////////////////////////////////////////////////#ifndef __EFFECT_RELIC_TABLE__#define __EFFECT_RELIC_TABLE__#include "Effect.h"//////////////////////////////////////////////////////////////////////////////// class EffectRelicTable//////////////////////////////////////////////////////////////////////////////class EffectRelicTable : public Effect {public: EffectRelicTable(Item* pItem) throw(Error);public: void affect() throw(Error); void affect(Item* pItem) throw(Error); void unaffect(Item* pItem) throw(Error); void unaffect() throw(Error); string toString() const throw();public: void setSafeTime(const Timeval& tv) { m_SafeTime = tv; } bool isSafeTime() const; void setLockTime(const Timeval& tv) { m_LockTime = tv; } bool isLockTime() const;private: Timeval m_SafeTime; Timeval m_LockTime;};class EffectSlayerRelicTable : public EffectRelicTable{public: EffectSlayerRelicTable(Item* pItem) throw(Error) : EffectRelicTable(pItem) {} EffectClass getEffectClass() const throw() { return EFFECT_CLASS_SLAYER_RELIC_TABLE; }};class EffectVampireRelicTable : public EffectRelicTable{public: EffectVampireRelicTable(Item* pItem) throw(Error) : EffectRelicTable(pItem) {} EffectClass getEffectClass() const throw() { return EFFECT_CLASS_VAMPIRE_RELIC_TABLE; }};#endif // __EFFECT_DOOM__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -