📄 skillslot.h
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : SkillSlot.h// Written by : elca@ewestsoft.com// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __SKILL_SLOT_H__#define __SKILL_SLOT_H__#include "Types.h"#include "Timeval.h"#include "Skill.h"#include "Exception.h"//////////////////////////////////////////////////////////////////////////////// Class SkillSlot;//////////////////////////////////////////////////////////////////////////////class SkillSlot {public: SkillSlot() throw(); SkillSlot(SkillType_t SkillType, DWORD Exp, ulong Interval) throw(); virtual ~SkillSlot() throw();public: virtual void save(const string & ownerID) throw(Error); virtual void save() throw(Error); virtual void create(const string & ownerID) throw(Error); SkillType_t getSkillType() const throw() { return m_SkillType; } void setSkillType(SkillType_t Type) throw() { m_SkillType = Type; } void setExp(Exp_t Exp) throw() { m_Exp = Exp; } Exp_t getExp() throw() { return m_Exp; } void setExpLevel(ExpLevel_t ExpLevel) throw() { m_ExpLevel = ExpLevel; } ExpLevel_t getExpLevel() throw() { return m_ExpLevel; } Turn_t getInterval() throw() { return m_Interval; } void setInterval(Turn_t Interval) throw() { m_Interval = Interval; } Turn_t getCastingTime() throw() { return m_CastingTime; } void setCastingTime(Turn_t CastingTime) throw() { m_CastingTime = CastingTime; } Timeval getRunTime() throw() { return m_runTime; } void setRunTime() throw(); void setRunTime(Turn_t delay, bool bSave=true) throw(); string getName() const throw() { return m_Name; } void setName(const string & Name) { m_Name = Name; } // 荤侩啊瓷且 版快 true // 荤侩 阂啊瓷且 版快 false void setDisable() throw() { m_Enable = false; } void setEnable() throw() { m_Enable = true; } bool canUse() const throw() { return m_Enable; } // 促澜 某胶泼捞 啊瓷且锭鳖瘤 巢篮 矫埃 Turn_t getRemainTurn( Timeval currentTime ) const throw();protected : string m_Name; SkillType_t m_SkillType; // 付过, 扁贱狼 辆幅 Exp_t m_Exp; // 槛访档 ExpLevel_t m_ExpLevel; // 槛访档 饭骇 Turn_t m_Interval; // 付过, 扁贱狼 掉饭捞, 0.1 檬 窜困 Turn_t m_CastingTime; // 某胶泼 鸥烙... 0.1檬 窜困 Timeval m_runTime; // 促澜俊 镜 荐 乐绰 矫埃 bool m_Enable; // 荤侩 啊瓷 茄啊 救茄啊};#endif // __SKILL_SLOT_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -