effecthymn.h

来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 49 行

H
49
字号
//////////////////////////////////////////////////////////////////////////////// Filename    : EffectHymn.h// Written by  : // Description : Doom俊 狼茄 规绢仿 窍碍 effect//////////////////////////////////////////////////////////////////////////////#ifndef __EFFECT_HYMN__#define __EFFECT_HYMN__#include "Effect.h"//////////////////////////////////////////////////////////////////////////////// class EffectHymn//////////////////////////////////////////////////////////////////////////////class EffectHymn : public Effect {public:	EffectHymn(Creature* pCreature) throw(Error);public:    EffectClass getEffectClass() const throw() { return EFFECT_CLASS_HYMN; }	void affect() throw(Error) {}	void affect(Creature* pCreature) throw(Error);	void unaffect(Creature* pCreature) throw(Error);	void unaffect() throw(Error); 	string toString() const throw();public:	int  getLevel() const { return m_Level; }	void setLevel(int level) throw() { m_Level = level; }	int getDamagePenalty(void) const { return m_DamagePenalty; }	void setDamagePenalty(int penalty) { m_DamagePenalty = penalty; }	int getToHitPenalty(void) const { return m_ToHitPenalty; }	void setToHitPenalty(int penalty) { m_ToHitPenalty = penalty; }private:	int m_Level;	int m_DamagePenalty;	int m_ToHitPenalty;};#endif // __EFFECT_DOOM__

⌨️ 快捷键说明

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