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

📄 shoptemplate.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : ShopTemplate.h// Written By  : 辫己刮// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __SHOPTEMPLATE_H__#define __SHOPTEMPLATE_H__#include "Types.h"#include "Exception.h"#include <hash_map>//////////////////////////////////////////////////////////////////////////////// class ShopTemplate// 惑痢俊辑 酒捞袍阑 磊悼栏肺 积己窍扁 困秦辑 DB俊辑 老沥茄// 屈侥狼 撇阑 佬绢坷绰单, 弊 撇阑 母蕉拳茄 努贰胶捞促.// 芭狼 备炼眉客 厚搅茄 努贰胶捞哥 磊眉利栏肺 漂喊洒 窍绰 老篮// 绝绊, 弊成 单捞磐甫 烙矫利栏肺 历厘窍绰 开且父阑 茄促.//////////////////////////////////////////////////////////////////////////////class ShopTemplate{///// Member methods /////	public:	ShopTemplate() throw();	virtual ~ShopTemplate() throw();public:	ShopTemplateID_t getID(void) const throw() { return m_ID; }	void setID(ShopTemplateID_t id) throw() { m_ID = id; }		ShopRackType_t getShopType(void) const throw() { return m_RackType; }	void setShopType(const ShopRackType_t type) throw() { m_RackType = type; }	int getItemClass(void) const throw() { return m_ItemClass; }	void setItemClass(int iclass) throw() { m_ItemClass = iclass; }		ItemType_t getMinItemType(void) const throw() { return m_MinItemType; }	void setMinItemType(ItemType_t t) { m_MinItemType = t; }	ItemType_t getMaxItemType(void) const throw() { return m_MaxItemType; }	void setMaxItemType(ItemType_t t) { m_MaxItemType = t; }	uint getMinOptionLevel(void) const throw() { return m_MinOptionLevel; }	void setMinOptionLevel(uint o) { m_MinOptionLevel = o; }	uint getMaxOptionLevel(void) const throw() { return m_MaxOptionLevel;}	void setMaxOptionLevel(uint o) { m_MaxOptionLevel = o; }	string toString() const throw();///// Member data /////private:	ShopTemplateID_t m_ID;            // DB entry id	ShopRackType_t   m_RackType;      // rack type(normal, special, ...)	int              m_ItemClass;     // item class(sword, armor, ...)	ItemType_t       m_MinItemType;   // item type(1~5 now)	ItemType_t       m_MaxItemType;   	uint             m_MinOptionLevel;	uint             m_MaxOptionLevel;};//////////////////////////////////////////////////////////////////////////////// class ShopTemplateManager// ShopTemplate 努贰胶狼 秦浆甘阑 啊瘤绊 乐绰 努贰胶捞促.// id甫 林搁 弊俊 秦寸窍绰 ShopTemplate阑 登倒妨林绰 开且阑 茄促.//////////////////////////////////////////////////////////////////////////////class ShopTemplateManager{///// Member methods /////	public:	ShopTemplateManager() throw();	~ShopTemplateManager() throw();public:	void init() throw(Error);	void load() throw(Error);public:	ShopTemplate* getTemplate(ShopTemplateID_t id) const throw(NoSuchElementException, Error);	void setTemplate(ShopTemplateID_t id, ShopTemplate* pEntry) throw();	string toString() const throw();///// Member data ///// private:	hash_map<ShopTemplateID_t, ShopTemplate*> m_Entries; // hash map of script};// global variable declarationextern ShopTemplateManager* g_pShopTemplateManager;#endif

⌨️ 快捷键说明

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