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

📄 dyepotion.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : DyePotion.h// Written By  : excel96// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __DYE_POTION_H__#define __DYE_POTION_H__#include "Item.h"#include "ConcreteItem.h"#include "ItemPolicies.h"#include "ItemInfo.h"#include "InfoClassManager.h"#include "ItemFactory.h"#include "ItemLoader.h"#include "Mutex.h"//////////////////////////////////////////////////////////////////////////////// class DyePotion;//////////////////////////////////////////////////////////////////////////////class DyePotion : public ConcreteItem<Item::ITEM_CLASS_DYE_POTION, Stackable, NoDurability, NoOption, NoGrade, NoAttacking> {public:	DyePotion() throw();	DyePotion(ItemType_t itemType, const list<OptionType_t>& optionType, ItemNum_t Num) throw();	public:	virtual void create(const string & ownerID, Storage storage, StorageID_t storageID, BYTE x, BYTE y, ItemID_t itemID=0) throw(Error);	virtual void save(const string & ownerID, Storage storage, StorageID_t storageID, BYTE x, BYTE y) throw(Error);	void tinysave(const string & field) const throw (Error)	{ tinysave(field.c_str()); }	void tinysave(const char* field) const throw (Error);	virtual string toString() const throw();	static void initItemIDRegistry(void) throw();public://	virtual ItemClass getItemClass() const throw() { return Item::ITEM_CLASS_DYE_POTION; }//	virtual string getObjectTableName() const throw() { return "DyePotionObject"; }/*	virtual ItemType_t getItemType() const throw() { return m_ItemType; }	virtual void setItemType(ItemType_t itemType) throw() { m_ItemType = itemType; }	virtual VolumeWidth_t getVolumeWidth() const throw(Error);	virtual VolumeHeight_t getVolumeHeight() const throw(Error);	virtual Weight_t getWeight() const throw(Error);public:	virtual ItemNum_t getNum() const throw() { return m_Num; }	virtual void setNum(ItemNum_t Num) throw() { m_Num = Num; }	bool    isStackable() const throw() { return false; }*/private://	ItemType_t m_ItemType;//	ItemNum_t  m_Num;		static Mutex    m_Mutex;          // 酒捞袍 ID 包访 遏	static ItemID_t m_ItemIDRegistry; // 努贰胶喊 绊蜡 酒捞袍 酒捞叼 惯鞭扁};//////////////////////////////////////////////////////////////////////////////// class DyePotionInfo//////////////////////////////////////////////////////////////////////////////class DyePotionInfo : public ItemInfo {public:	enum ITEM_FUNCTION	{		FUNCTION_HAIR = 0,				// 赣府祸阑 官槽促.		FUNCTION_SKIN = 1,				// 乔何祸阑 官槽促.		FUNCTION_SEX = 2,				// 己喊阑 官槽促.		FUNCTION_BAT = 3,				// 冠零 祸阑 官槽促.	};public:	virtual Item::ItemClass getItemClass() const throw() { return Item::ITEM_CLASS_DYE_POTION; }	virtual string toString() const throw();public :	virtual BYTE getFunctionFlag() const throw() { return m_fFunction; }	virtual void setFunctionFlag(BYTE flag) throw() { m_fFunction = flag; }	virtual int getFunctionValue() const throw() { return m_FunctionValue; }	virtual void setFunctionValue(int value) throw() { m_FunctionValue = value; }	BYTE	   m_fFunction;		// 扁瓷	int        m_FunctionValue;	// 扁瓷苞 包访等 蔼};//////////////////////////////////////////////////////////////////////////////// class DyePotionInfoManager;//////////////////////////////////////////////////////////////////////////////class DyePotionInfoManager : public InfoClassManager {public:	virtual Item::ItemClass getItemClass() const throw() { return Item::ITEM_CLASS_DYE_POTION; }	virtual void load() throw(Error);};extern DyePotionInfoManager* g_pDyePotionInfoManager;//////////////////////////////////////////////////////////////////////////////// class DyePotionFactory//////////////////////////////////////////////////////////////////////////////class DyePotionFactory : public ItemFactory {public:	virtual Item::ItemClass getItemClass() const throw() { return Item::ITEM_CLASS_DYE_POTION; }	virtual string getItemClassName() const throw() { return "DyePotion"; }	public:	virtual Item* createItem(ItemType_t ItemType, const list<OptionType_t>& OptionType) throw() { return new DyePotion(ItemType,OptionType,1); }};//////////////////////////////////////////////////////////////////////////////// class DyePotionLoader;//////////////////////////////////////////////////////////////////////////////class DyePotionLoader : public ItemLoader {public:	virtual Item::ItemClass getItemClass() const throw() { return Item::ITEM_CLASS_DYE_POTION; }	virtual string getItemClassName() const throw() { return "DyePotion"; }public:	virtual void load(Creature* pCreature) throw(Error);	virtual void load(Zone* pZone) throw(Error);	virtual void load(StorageID_t storageID, Inventory* pInventory) throw(Error);};extern DyePotionLoader* g_pDyePotionLoader;#endif

⌨️ 快捷键说明

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