inventoryinfo.h
来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 60 行
H
60 行
//////////////////////////////////////////////////////////////////////////////// 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 + =
减小字号Ctrl + -
显示快捷键?