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