📄 findthebombappui.h
字号:
// Copyright (c) 2004, Symbian Software Ltd. All rights reserved.
#ifndef __FINDTHEBOMB_APPUI_H__
#define __FINDTHEBOMB_APPUI_H__
#include <aknappui.h>
#include <eikmenup.h>
#include <eikmenub.h>
#include <aknnavi.h>
#include <aknnavide.h>
class CFindTheBombAppView;
class MFindTheBombGameControl
{
public:
virtual TBool HitSquareL(TInt aIndex)=0;
virtual TInt SquareStatus(TInt aIndex)=0;
};
class CFindTheBombAppUi : public CAknAppUi, public MFindTheBombGameControl
{
public:
CFindTheBombAppUi();
~CFindTheBombAppUi();
void ConstructL();
private: // Implementation
void SetWinLineL(TInt aTile0);
void GetBombAddress();
private:
void FindTheBombNearby(TInt);
public: // From CAknAppUi
void HandleCommandL(TInt aCommand);
public: // From MEikMenuObserver
void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
public: // New functions
TBool IsCrossTurn();
TInt GameWonBy();
private:
// void SetNavigationPaneL(TBool aBool);
// void SwitchTurnL();
private: // From MFindTheBombGameControl
TBool HitSquareL(TInt aIndex);
TInt SquareStatus(TInt aIndex);
private:
CFindTheBombAppView* iAppView; // AppUi owns the application view
TInt iGameStatus;
TBool iCrossTurn;
RArray<TInt> iTileState;
RArray<TInt> iWinLines;
RArray<TInt> iBombAddress;
CAknNavigationControlContainer* iNaviPane; // Not owned by the AppUi
CAknNavigationDecorator* iNaviDecorator; // Owned by the AppUi
TTime time;
TInt64 iRndSeed;
TInt SquareState;
TInt iSum;
TInt64 iChangeSeed;
TBool iOffTheNotice;
};
#endif // __FINDTHEBOMB_APPUI_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -