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