00001 // Copyright 2002 Kenneth Guy, 00002 // 00003 // You are free to take the source and do as you wish with it. 00004 // However it would be nice if you let me know if the code was useful 00005 // to you and give me an acknowledgement if you use a significant portion 00006 // of the code in an application. 00007 // 00008 // CGameAppUi.h 00009 // 00010 00011 #ifndef _CGAMEAPPUI_H_ 00012 #define _CGAMEAPPUI_H_ 00013 00018 #include <eikappui.h> 00019 #include <eikapp.h> 00020 #include <eikdoc.h> 00021 #include <eikenv.h> 00022 #include <uikon.hrh> 00023 #include <eikmfne.h> 00024 #include <eikdialg.h> 00025 #include <eikon.hrh> 00026 00027 #include <Game.rsg> 00028 #include "Game.hrh" 00029 #include "CGameState.h" 00030 00031 #include "CGameFramework.h" 00032 #include "CGameAppView.h" 00033 00034 00040 class CGameAppUi : public CEikAppUi { 00041 public: 00042 void ConstructL(); 00043 ~CGameAppUi(); 00044 private: 00045 void HandleCommandL(TInt aCommand); 00046 TBool NextLevelL(); 00047 void LoadLevelL(); 00048 void DynInitMenuPaneL(TInt aMenuId,CEikMenuPane* aMenuPane); 00049 void HelpDialogL(); 00050 void AboutDialogL(); 00051 00052 private: 00053 CGameAppView* iAppView; 00054 00055 CGameState* iGameState; 00056 CGameFramework* iGame; 00057 CGameFramework::TGameState iFrameworkState; 00058 TInt iLevel; 00059 TInt iMapNo; 00060 }; 00061 00062 #endif