meetnpcqueststatus.h
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 31 行
H
31 行
#ifndef __MEET_NPC_QUEST_STATUS_H__#define __MEET_NPC_QUEST_STATUS_H__#include "QuestStatus.h"#include "Gpackets/GCQuestStatus.h"class MeetNPCQuestStatus : public QuestStatus{public: MeetNPCQuestStatus( QuestID_t qID, const VSDateTime& deadline, NPCID_t npcID, NPCID_t npcID2 ) : QuestStatus( qID, deadline, QUEST_CLASS_MEET_NPC ) { m_TargetNPCID[0] = npcID; m_TargetNPCID[1] = npcID2; m_bMet[0] = false; m_bMet[1] = false; } virtual ~MeetNPCQuestStatus() { } bool isSuccess() const throw(Error) { return m_bMet[0] && m_bMet[1]; } bool isTarget( NPCID_t npcID ) const; bool met( NPCID_t npcID ); NPCID_t getTargetID() const; GCQuestStatus* makeStatusPacket() const; string toString() const throw(Error);private: NPCID_t m_TargetNPCID[2]; bool m_bMet[2];};#endif// __MEET_NPC_QUEST_STATUS_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?