findthebombappui.h

来自「基于symbian s60 2nd下的扫雷小游戏」· C头文件 代码 · 共 74 行

H
74
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?