slayerskillinfo.h

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

H
96
字号
//////////////////////////////////////////////////////////////////////// // Filename    : SlayerSkillInfo.h // Written By  : elca@ewestsoft.com// Description :  胶懦狼 沥焊甸// //////////////////////////////////////////////////////////////////////#ifndef __SLAYER_SKILL_INFO_H__#define __SLAYER_SKILL_INFO_H__// include files#include "Types.h"#include "Exception.h"#include "PCSkillInfo.h"#include "SubSlayerSkillInfo.h"#include "Packet.h"////////////////////////////////////////////////////////////////////////// class SlayerSkillInfo;//// 霸烙辑滚俊辑 努扼捞攫飘肺 磊脚狼 扁贱捞 己傍阑 舅妨林扁 困茄 努贰胶////////////////////////////////////////////////////////////////////////class SlayerSkillInfo : public PCSkillInfo {public :		// constructor	SlayerSkillInfo () throw ();		// destructor	~SlayerSkillInfo () throw ();public :    // 涝仿胶飘覆(滚欺)栏肺何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促.    virtual void read (SocketInputStream & iStream) throw (ProtocolException, Error);		        // 免仿胶飘覆(滚欺)栏肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促.    virtual void write (SocketOutputStream & oStream) const throw (ProtocolException, Error);	// get packet's body size	// 弥利拳矫, 固府 拌魂等 沥荐甫 荤侩茄促.	PacketSize_t getSize () throw ();	static uint getMaxSize () throw () { 		return szBYTE + szSkillDomainType + szBYTE + (SubSlayerSkillInfo::getMaxSize()* 255);	}	// get packet's debug string	string toString () const throw ();	// get / set New Skill	bool isLearnNewSkill() const throw() { return m_bLearnNewSkill; }	void setLearnNewSkill(bool NewSkill) throw() { m_bLearnNewSkill = NewSkill; }	// get /set DomainType	SkillDomainType_t getDomainiType() const throw() { return m_DomainType; }	void setDomainType(SkillDomainType_t DomainType) { m_DomainType = DomainType; }	// get / set ListNumber	BYTE getListNum() const throw() { return m_ListNum; }	void setListNum(BYTE ListNum) throw() { m_ListNum = ListNum; }	// add / delete / clear S List	void addListElement(SubSlayerSkillInfo* pSubSlayerSkillInfo) throw() { m_SubSlayerSkillInfoList.push_back(pSubSlayerSkillInfo); }	// ClearList	void clearList() throw() { m_SubSlayerSkillInfoList.clear(); m_ListNum = 0; }	// pop front Element in Status List	SubSlayerSkillInfo* popFrontListElement() throw() 	{ 		SubSlayerSkillInfo* TempSubSlayerSkillInfo = m_SubSlayerSkillInfoList.front(); m_SubSlayerSkillInfoList.pop_front(); return TempSubSlayerSkillInfo; 	}private :	// New 胶懦阑 硅匡 荐 乐蠢衬 绝蠢衬 沥焊	bool m_bLearnNewSkill;	SkillDomainType_t m_DomainType;		// SubSlayerSkillInfo List Total Number	BYTE m_ListNum;	// SubSlayerSkillInfo List	list<SubSlayerSkillInfo*> m_SubSlayerSkillInfoList;};#endif

⌨️ 快捷键说明

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