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

📄 itemrack.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : ItemRack.h// Written By  : excel96// Description ://////////////////////////////////////////////////////////////////////////////#ifndef __ITEMRACK_H__#define __ITEMRACK_H__#include "Types.h"//////////////////////////////////////////////////////////////////////////////// class ItemRack//////////////////////////////////////////////////////////////////////////////class Item;class ItemRack{public: 	ItemRack();	ItemRack(int size);	virtual ~ItemRack();public:	void  init(int size);	bool  isEmpty(void) const;	bool  isFull(void) const;	bool  isExist(BYTE index) const;	void  insert(BYTE index, Item* pItem);	void  remove(BYTE index);	Item* get(BYTE index);	void  clear(void);	BYTE  getFirstEmptySlot(void) const;	BYTE  getLastEmptySlot(void) const;	bool  verifyIndex(BYTE index) const;protected:	int    m_nSize;	Item** m_ppItem;};#endif

⌨️ 快捷键说明

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