⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inventoryinfo.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : InventoryInfo.h // Written By  : elca@ewestsoft.com// Description :// 牢亥配府 救俊 乐绰 酒捞袍甸狼 沥焊 府胶飘捞促.// 牢亥配府 救狼 阿阿狼 酒捞袍甸俊 措茄 沥焊绰 InventorySlotInfo甫 曼炼.//////////////////////////////////////////////////////////////////////////////#ifndef __INVENTORY_INFO_H__#define __INVENTORY_INFO_H__#include "Types.h"#include "Exception.h"#include "InventorySlotInfo.h"#include "Packet.h"//////////////////////////////////////////////////////////////////////////////// class InventoryInfo;//////////////////////////////////////////////////////////////////////////////class InventoryInfo {public:	InventoryInfo () throw ();	~InventoryInfo () 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 + (InventorySlotInfo::getMaxSize()* 60);	}	string toString () const throw ();public:	BYTE getListNum() const throw() { return m_ListNum; }	void setListNum(BYTE ListNum) throw() { m_ListNum = ListNum; }	void addListElement(InventorySlotInfo* pInventorySlotInfo) throw() { m_InventorySlotInfoList.push_back(pInventorySlotInfo); }	void clearList() throw() { m_InventorySlotInfoList.clear(); m_ListNum = 0; }	InventorySlotInfo* popFrontListElement() throw() 	{ 		InventorySlotInfo* TempInventorySlotInfo = m_InventorySlotInfoList.front(); m_InventorySlotInfoList.pop_front(); return TempInventorySlotInfo; 	}private:	BYTE m_ListNum; // number of item in inventory	list<InventorySlotInfo*> m_InventorySlotInfoList; // actual item info};#endif

⌨️ 快捷键说明

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