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

📄 masterlairinfomanager.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : MasterLairInfoManager.h// Written By  : Reiot// Description ://////////////////////////////////////////////////////////////////////////////#ifndef __MASTER_LAIR_INFO_MANAGER_H__#define __MASTER_LAIR_INFO_MANAGER_H__#include "Types.h"#include "Exception.h"#include <hash_map>// 付胶磐 磷看阑锭 俺牢捞 罐绰 拌鞭 版氰摹const int MASTER_KILL_RANK_EXP = 23300;//                            0x00bbggrrconst uint MASTER_SAY_COLOR = 0x003030FF;//////////////////////////////////////////////////////////////////////////////// class MasterLairInfo;//////////////////////////////////////////////////////////////////////////////class MasterLairInfo {public:	MasterLairInfo();	~MasterLairInfo();public:	ZoneID_t getZoneID() const throw() { return m_ZoneID; }	void setZoneID(ZoneID_t zoneID) throw() { m_ZoneID = zoneID; }	MonsterType_t getMasterNotReadyMonsterType() const throw() { return m_MasterNotReadyMonsterType; }	void setMasterNotReadyMonsterType(MonsterType_t mt) throw() { m_MasterNotReadyMonsterType = mt; }	MonsterType_t getMasterMonsterType() const throw() { return m_MasterMonsterType; }	void setMasterMonsterType(MonsterType_t mt) throw() { m_MasterMonsterType = mt; }		bool isMasterRemainNotReady() const throw() { return m_MasterRemainNotReady; }	void setMasterRemainNotReady(bool toCorpse=true) throw() { m_MasterRemainNotReady = toCorpse; }	ZoneCoord_t getMasterX() const throw() { return m_MasterX; }	void setMasterX(ZoneCoord_t x) throw() { m_MasterX = x; }	ZoneCoord_t getMasterY() const throw() { return m_MasterY; }	void setMasterY(ZoneCoord_t y) throw() { m_MasterY = y; }	Dir_t getMasterDir() const throw() { return m_MasterDir; }	void setMasterDir(Dir_t dir) throw() { m_MasterDir = dir; }	int  getMaxPassPlayer() const throw() { return m_MaxPassPlayer; }	void setMaxPassPlayer(int mp) throw() { m_MaxPassPlayer = mp; }	//int  getMaxSummonMonster() const throw() { return m_MasterMonsterType; }	//void setMaxSummonMonster(int mt) throw() { m_MasterMonsterType = mt; }	ZoneCoord_t  getSummonX() const throw() { return m_SummonX; }	void setSummonX(ZoneCoord_t x) throw() { m_SummonX = x; }	ZoneCoord_t  getSummonY() const throw() { return m_SummonY; }	void setSummonY(ZoneCoord_t y) throw() { m_SummonY = y; }	int  getFirstRegenDelay() const throw() { return m_FirstRegenDelay; }	void setFirstRegenDelay(int delay) throw() { m_FirstRegenDelay = delay; }	int  getRegenDelay() const throw() { return m_RegenDelay; }	void setRegenDelay(int delay) throw() { m_RegenDelay = delay; }	int  getStartDelay() const throw() { return m_StartDelay; }	void setStartDelay(int delay) throw() { m_StartDelay = delay; }	int  getEndDelay() const throw() { return m_EndDelay; }	void setEndDelay(int delay) throw() { m_EndDelay = delay; }	int  getKickOutDelay() const throw() { return m_KickOutDelay; }	void setKickOutDelay(int delay) throw() { m_KickOutDelay = delay; }	ZoneID_t  getKickZoneID() const throw() { return m_KickZoneID; }	void setKickZoneID(ZoneID_t zoneID) throw() { m_KickZoneID = zoneID; }	ZoneCoord_t  getKickZoneX() const throw() { return m_KickZoneX; }	void setKickZoneX(ZoneCoord_t x) throw() { m_KickZoneX = x; }	ZoneCoord_t  getKickZoneY() const throw() { return m_KickZoneY; }	void setKickZoneY(ZoneCoord_t y) throw() { m_KickZoneY = y; }	int  getLairAttackTick() const throw() { return m_LairAttackTick; }	void setLairAttackTick(int t) throw() { m_LairAttackTick = t; }	int  getLairAttackMinNumber() const throw() { return m_LairAttackMinNumber; }	void setLairAttackMinNumber(int t) throw() { m_LairAttackMinNumber = t; }	int  getLairAttackMaxNumber() const throw() { return m_LairAttackMaxNumber; }	void setLairAttackMaxNumber(int t) throw() { m_LairAttackMaxNumber = t; }	void setSayText(vector<string>& sayWords, const string& text) throw();	void setMasterSummonSay(const string& text) throw();	void setMasterDeadSlayerSay(const string& text) throw();	void setMasterDeadVampireSay(const string& text) throw();	void setMasterNotDeadSay(const string& text) throw();	const string& getRandomMasterSummonSay() const throw();	const string& getRandomMasterDeadSlayerSay() const throw();	const string& getRandomMasterDeadVampireSay() const throw();	const string& getRandomMasterNotDeadSay() const throw();	string toString() const throw();private:	ZoneID_t       m_ZoneID;                    // 粮 酒捞叼	MonsterType_t  m_MasterNotReadyMonsterType;         // 付胶磐狼 NotReady 惑怕俊辑狼 MonsterType	MonsterType_t  m_MasterMonsterType;         // 付胶磐狼 MonsterType	bool           m_MasterRemainNotReady;	// NotReady惑怕狼 Master甫 矫眉肺 官操扁	ZoneCoord_t    m_MasterX;                   // 付胶磐狼 X谅钎	ZoneCoord_t    m_MasterY;         			// 付胶磐狼 Y谅钎	Dir_t          m_MasterDir;         		// 付胶磐狼 规氢	int            m_MaxPassPlayer;            // 弥措 荤侩磊 荐	//int            m_MaxSummonMonster;          // 弥措 阁胶磐 家券 箭磊	ZoneCoord_t    m_SummonX;                   // 阁胶磐 家券 谅钎	ZoneCoord_t    m_SummonY;         			// 阁胶磐 家券 谅钎	int            m_FirstRegenDelay;           // 弥檬狼 付胶磐 饭绢 府哩 林扁(盒)	int            m_RegenDelay;                // 付胶磐 饭绢 府哩 林扁(盒)	int            m_StartDelay;                // 涝厘 陛瘤, 付胶磐 何劝 矫埃	int            m_EndDelay;                  // 付胶磐甫 磷老 荐 乐绰 矫埃, 捞 矫埃 捞饶俊绰 碍力 眠规	int            m_KickOutDelay;              // 付胶磐甫 磷牢 饶, 碍力眠规鳖瘤狼 矫埃	// 碍力眠规矫懦 粮	ZoneID_t       m_KickZoneID;                 	ZoneCoord_t    m_KickZoneX;	ZoneCoord_t    m_KickZoneY;	// Lair 傈眉 傍拜	int            m_LairAttackTick;		int            m_LairAttackMinNumber;		int            m_LairAttackMaxNumber;		// 各 家券且锭 窍绰 富	vector<string> m_MasterSummonSay;	// 付胶磐啊 磷阑 锭 窍绰 富	vector<string> m_MasterDeadSlayerSay;	vector<string> m_MasterDeadVampireSay;	// 付胶磐啊 救 磷菌阑锭 窍绰 富	vector<string> m_MasterNotDeadSay;};//////////////////////////////////////////////////////////////////////////////// class MasterLairInfoManager;// ZoneID 甫 虐蔼栏肺 秦辑 粮 沥焊甫 八祸且 荐 乐绰 扁瓷阑 力傍茄促.//////////////////////////////////////////////////////////////////////////////class MasterLairInfoManager {public:	MasterLairInfoManager() throw();	~MasterLairInfoManager() throw();public:	void init() throw(Error);	void load() throw(Error);	void reload() throw(Error);		void addMasterLairInfo(MasterLairInfo* pMasterLairInfo) throw(Error);	void deleteMasterLairInfo(ZoneID_t zoneID) throw(NoSuchElementException);	MasterLairInfo* getMasterLairInfo(ZoneID_t zoneID) throw(NoSuchElementException);	int  size() const	{ return m_MasterLairInfos.size(); }	string toString() const throw();private:	hash_map<ZoneID_t, MasterLairInfo*> m_MasterLairInfos; // zone info 狼 秦浆甘};extern MasterLairInfoManager* g_pMasterLairInfoManager;#endif

⌨️ 快捷键说明

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