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

📄 itempack.h

📁 物件管理系统源代码
💻 H
字号:
#ifndef ITEMPACKH
#define ITEMPACKH

#include "Item.h"
#include <map>

class cItemPack {
	std::map< cItem, unsigned long > contents;
public:
	cItemPack( );
	cItemPack( cItem & , unsigned long );
	void clear( );
	unsigned long add( const cItem & , const unsigned long );
	unsigned long remove( const cItem & , const unsigned long );
	unsigned long getAmount( const  cItem & ) const;
	const std::map< cItem, unsigned long > & getItems( ) const;
	cItemPack & operator= ( const cItemPack & );
	cItemPack & operator+= ( const cItemPack & );
	cItemPack operator+ ( const cItemPack & ) const;
};

#endif

⌨️ 快捷键说明

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