CSCommon: MMatchQuest.h 소스 파일

MAIET

MMatchQuest.h

00001 #ifndef _MMATCHQUEST_H
00002 #define _MMATCHQUEST_H
00003 
00004 #include "MBaseQuest.h"
00005 
00006 
00008 class MMatchQuest : public MBaseQuest
00009 {
00010 protected:
00011     virtual bool OnCreate();                
00012     virtual void OnDestroy();               
00013     
00014 
00015     MQuestNPCSetCatalogue       m_NPCSetCatalogue;                      
00016     MQuestScenarioCatalogue     m_ScenarioCatalogue;                    
00017 
00018 public:
00019     MMatchQuest();                                                      
00020     virtual ~MMatchQuest();                                             
00021 
00022     inline MQuestNPCSetInfo* GetNPCSetInfo(int nID);                    
00023     inline MQuestNPCSetInfo* GetNPCSetInfo(const char* szName);         
00024     inline MQuestScenarioCatalogue* GetScenarioCatalogue();             
00025     inline MQuestScenarioInfo*      GetScenarioInfo(int nScenarioID);   
00026 
00027 };
00028 
00029 
00030 
00031 
00032 inline MQuestNPCSetInfo* MMatchQuest::GetNPCSetInfo(int nID)
00033 {
00034     return m_NPCSetCatalogue.GetInfo(nID);
00035 }
00036 
00037 inline MQuestNPCSetInfo* MMatchQuest::GetNPCSetInfo(const char* szName)
00038 {
00039     return m_NPCSetCatalogue.GetInfo(szName);
00040 }
00041 
00042 inline MQuestScenarioCatalogue* MMatchQuest::GetScenarioCatalogue()
00043 {
00044     return &m_ScenarioCatalogue;
00045 }
00046 
00047 inline MQuestScenarioInfo* MMatchQuest::GetScenarioInfo(int nScenarioID)
00048 {
00049     return m_ScenarioCatalogue.GetInfo(nScenarioID);
00050 }
00051 
00052 
00053 #endif


MAIET entertainment