📄 infoclassmanager.h
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : InfoClassManager.h// Written By : Elca// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __INFO_CLASS_MANAGER_H__#define __INFO_CLASS_MANAGER_H__#include "Types.h"#include "Exception.h"#include "Item.h"//////////////////////////////////////////////////////////////////////////////// class InfoClassManager;//////////////////////////////////////////////////////////////////////////////class ItemInfo;struct OPTION_RATIO{ OptionType_t optionType; int ratioSum;};class InfoClassManager {public: InfoClassManager() throw(); virtual ~InfoClassManager() throw();public: virtual Item::ItemClass getItemClass() const throw() = 0; void init() throw(Error); void reload() throw(Error); virtual void load() throw(Error) = 0; void addItemInfo(ItemInfo* pItemInfo) throw(DuplicatedException, Error); ItemInfo* getItemInfo(ItemType_t ItemType) const throw(NoSuchElementException, Error); uint getInfoCount() const throw() { return m_InfoCount + 1; } void removeAllItemInfo() throw(Error); // for Mysterious Item ItemType_t getRandomItemType() const throw (Error); Price_t getAveragePrice() const { return m_AveragePrice; } string toString() const throw();protected: uint m_InfoCount; // #酒捞袍沥焊 ItemInfo** m_pItemInfos; // array of item info int m_TotalRatio; // item type甸狼 total Ratio Price_t m_AveragePrice; // 捞 item class狼 葛电 item 啊拜狼 乞闭};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -