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

📄 mine.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : Mine.h// Written By  : Elca// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __MINE_H__#define __MINE_H__#include "Item.h"#include "ItemInfo.h"#include "InfoClassManager.h"#include "ItemFactory.h"#include "ItemLoader.h"#include "Mutex.h"//////////////////////////////////////////////////////////////////////////////// class Mine;//////////////////////////////////////////////////////////////////////////////class Mine : public Item {public:	Mine() throw();	Mine(ItemType_t itemType, const list<OptionType_t>& optionType) 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_MINE; }	virtual string getObjectTableName() const throw() { return "MineObject"; }	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);	Damage_t getDamage() const throw(Error) { return m_Damage;}	void setDamage(Damage_t D) throw(Error) { m_Damage = D;}	Dir_t getDir() const throw(Error) { return m_Dir;}	void setDir(Dir_t R) throw(Error) { m_Dir = R;}	string getInstallerName() const throw() { return m_InstallerName; }	void setInstallerName( const string & InstallerName ) throw() { m_InstallerName = InstallerName; }	int getInstallerPartyID() const throw() { return m_InstallerPartyID; }	void setInstallerPartyID( int InstallerPartyID ) throw() { m_InstallerPartyID = InstallerPartyID; }	virtual Damage_t getMinDamage() const throw(Error);	virtual Damage_t getMaxDamage() const throw(Error);	virtual ItemNum_t getNum() const throw() { return m_Num; }	virtual void setNum(ItemNum_t Num) throw() { m_Num = Num; }	bool    isStackable() const throw() { return true; }private:	ItemType_t	m_ItemType; // 酒捞袍 鸥涝	Damage_t	m_Damage;	ItemNum_t	m_Num;	Dir_t		m_Dir;	string		m_InstallerName;	int			m_InstallerPartyID;		static Mutex    m_Mutex;          // 酒捞袍 ID 包访 遏	static ItemID_t m_ItemIDRegistry; // 努贰胶喊 绊蜡 酒捞袍 酒捞叼 惯鞭扁};//////////////////////////////////////////////////////////////////////////////// class MineInfo//////////////////////////////////////////////////////////////////////////////class MineInfo : public ItemInfo {public:	virtual Item::ItemClass getItemClass() const throw() { return Item::ITEM_CLASS_MINE; }	virtual string toString() const throw();	virtual Damage_t getMinDamage() const throw() { return m_MinDamage; }	virtual void setMinDamage(Damage_t minDamage) throw() { m_MinDamage = minDamage; }	virtual Damage_t getMaxDamage() const throw() { return m_MaxDamage; }	virtual void setMaxDamage(Damage_t maxDamage) throw() { m_MaxDamage = maxDamage; }private:	Damage_t m_MinDamage;     // 弥家 单固瘤	Damage_t m_MaxDamage;     // 弥措 单固瘤};//////////////////////////////////////////////////////////////////////////////// class MineInfoManager;//////////////////////////////////////////////////////////////////////////////class MineInfoManager : public InfoClassManager {public:	virtual Item::ItemClass getItemClass() const throw() { return Item::ITEM_CLASS_MINE; }	virtual void load() throw(Error);};extern MineInfoManager* g_pMineInfoManager;//////////////////////////////////////////////////////////////////////////////// class MineFactory//////////////////////////////////////////////////////////////////////////////class MineFactory : public ItemFactory {public:	virtual Item::ItemClass getItemClass() const throw() { return Item::ITEM_CLASS_MINE; }	virtual string getItemClassName() const throw() { return "Mine"; }	public:	virtual Item* createItem(ItemType_t ItemType, const list<OptionType_t>& OptionType) throw() { return new Mine(ItemType,OptionType); }};//////////////////////////////////////////////////////////////////////////////// class MineLoader;//////////////////////////////////////////////////////////////////////////////class MineLoader : public ItemLoader {public:	virtual Item::ItemClass getItemClass() const throw() { return Item::ITEM_CLASS_MINE; }	virtual string getItemClassName() const throw() { return "Mine"; }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 MineLoader* g_pMineLoader;#endif

⌨️ 快捷键说明

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