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

📄 monsterkillqueststatus.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
#ifndef __MONSTER_KILL_QUEST_STATUS_H__#define __MONSTER_KILL_QUEST_STATUS_H__#include "QuestStatus.h"#include "Gpackets/GCQuestStatus.h"class MonsterKillQuestStatus : public QuestStatus{public:	MonsterKillQuestStatus( QuestID_t qID, const VSDateTime& deadline, SpriteType_t targetSType, bool isChief, int goal ) : QuestStatus( qID, deadline, QUEST_CLASS_MONSTER_KILL )	{ m_TargetMonsterSpriteType = targetSType; m_IsChief = isChief; m_GoalNum = goal; m_CurrentNum = 0; }	virtual ~MonsterKillQuestStatus() { }	//virtual bool	isSuccess() throw(Error) { return m_CurrentNum >= m_GoalNum; }	// ( !m_IsChief || isChief ) 绰 m_IsChief 捞搁 isChief 捞绢具 茄促. 扼绰 富苞 鞍促.	bool			killed( SpriteType_t targetSType, bool isChief );	bool			isTarget( SpriteType_t sType, bool isChief ) { return (!m_IsChief || isChief ) && m_TargetMonsterSpriteType == sType; }	void			completeQuest() { m_CurrentNum = m_GoalNum; if ( !isSuccess() && !isRewarded() ) setSuccess(); }	GCQuestStatus* makeStatusPacket() const;	string			toString() const throw(Error);private:	SpriteType_t	m_TargetMonsterSpriteType;	bool			m_IsChief;	int				m_GoalNum;	int				m_CurrentNum;};#endif// __MONSTER_KILL_QUEST_STATUS_H__

⌨️ 快捷键说明

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