gearinfo.h

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

H
60
字号
//////////////////////////////////////////////////////////////////////////////// Filename    : GearInfo.h // Written By  : elca@ewestsoft.com// Description :// 涝绊 乐绰 扁绢 酒捞袍甸狼 沥焊 府胶飘捞促.// 阿阿狼 扁绢 酒捞袍俊 措茄 沥焊绰 GearSlotInfo甫 曼炼窍搁 等促.//////////////////////////////////////////////////////////////////////////////#ifndef __GEAR_INFO_H__#define __GEAR_INFO_H__#include "Types.h"#include "Exception.h"#include "GearSlotInfo.h"#include "Packet.h"//////////////////////////////////////////////////////////////////////////////// class GearInfo;//////////////////////////////////////////////////////////////////////////////class GearInfo {public:	GearInfo () throw ();	~GearInfo () throw ();	public:    void read (SocketInputStream & iStream) throw (ProtocolException, Error);    void write (SocketOutputStream & oStream) const throw (ProtocolException, Error);	PacketSize_t getSize () throw ();	static uint getMaxSize () throw () 	{		return szBYTE + (GearSlotInfo::getMaxSize()* 13);	}	string toString () const throw ();public:	BYTE getListNum() const throw() { return m_ListNum; }	void setListNum(BYTE ListNum) throw() { m_ListNum = ListNum; }	void addListElement(GearSlotInfo* pGearSlotInfo) throw() { m_GearSlotInfoList.push_back(pGearSlotInfo); }	void clearList() throw() { m_GearSlotInfoList.clear(); m_ListNum = 0; }	GearSlotInfo* popFrontListElement() throw() 	{ 		GearSlotInfo* TempGearSlotInfo = m_GearSlotInfoList.front(); m_GearSlotInfoList.pop_front(); return TempGearSlotInfo; 	}private:	BYTE m_ListNum; // number of gear	list<GearSlotInfo*> m_GearSlotInfoList; // actual gear info};#endif

⌨️ 快捷键说明

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