00001 /// \file GASPilotGuiFactory.h 00002 /// \brief GUI factory for GAS pilot 00003 /// \ingroup GASPilot 00004 /// 00005 /// This utility launches games with the various subutilities. 00006 /// 00007 /// Copyright (c) 2007-2008 by Michael Ellison. 00008 /// See COPYING.txt for the \ref gaslicense License (MIT License). 00009 /// 00010 // $Author: mikeellison $ 00011 // $Date: 2008-01-31 06:29:47 -0600 (Thu, 31 Jan 2008) $ 00012 // $Revision: $ 00013 // $NoKeywords: $ 00014 #ifndef _GASPilotGUIFactory_H_ 00015 #define _GASPilotGUIFactory_H_ 00016 00017 #include "CAT.h" 00018 #include "CATGuiFactory.h" 00019 #include "GASPilotWindow.h" 00020 00021 /// \class GASPilotGuiFactory 00022 /// \brief GUI factory for GAS pilot 00023 /// \ingroup GASPilot 00024 class GASPilotGuiFactory : public CATGuiFactory 00025 { 00026 public: 00027 GASPilotGuiFactory(const CATString& skinRoot, const CATString& skinPath) 00028 :CATGuiFactory(skinRoot,skinPath) 00029 { 00030 } 00031 00032 virtual ~GASPilotGuiFactory() 00033 { 00034 } 00035 00036 virtual CATXMLObject* CreateObject( const CATWChar* objectType) 00037 { 00038 if (0 == wcscmp(objectType,L"GASPilotWindow")) 00039 { 00040 return new GASPilotWindow(fSkinRoot, fSkinPath); 00041 } 00042 return CATGuiFactory::CreateObject(objectType); 00043 } 00044 }; 00045 00046 00047 #endif // _GASPilotGUIFactory_H_