cgameappview.h

来自「symbian 的一个 二维飞行游戏 源码 及相关技术文章」· C头文件 代码 · 共 47 行

H
47
字号
// Copyright 2002 Kenneth Guy,
// 
// CGameAppView.h
//

#ifndef _CGAMEAPPVIEW_H_
#define _CGAMEAPPVIEW_H_

/** \file CGameAppView.h 
    defines class CGameAppView */


#include <eikappui.h>
#include <eikapp.h>
#include <eikdoc.h>
#include <eikenv.h>
#include <uikon.hrh>
#include <eikmfne.h>
#include <eikdialg.h>
#include <eikon.hrh>

class CGameState;

/** Draw the app window.

    This draws the application window to reflect the game state */

class CGameAppView : public CCoeControl, public MCoeControlContext {	
public:
  void ConstructL(const TRect& aRect, CGameState *aState);
  ~CGameAppView();
private:
  void Draw(const TRect& aRect) const;
  void DrawHighScores() const;
  void DrawPaused() const;
  void DrawLevelCompleted() const;

private:
  CGameState *iGameState; ///< Game state
  HBufC* iCompleteString; ///< String to display when a level is finished
  HBufC* iPausedString;   ///< String to display when a game is paused
  HBufC* iScoresString;   ///< String to display on high score screen
};


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?