rpsappui.h

来自「基于symbian UIQ 的一款古老的飞机游戏。对入门学习很有帮助。」· C头文件 代码 · 共 83 行

H
83
字号
// Copyright (c) Symbian Ltd 2008. All rights reserved.

#ifndef __RPSAPPUI_H__
#define __RPSAPPUI_H__

// INCLUDES
#include <qikappui.h>
#include "rpsGameEngine.h"


// FORWARD DECLARATIONS
class CRpsAppView;

// CLASS DECLARATION
/**
* CRpsAppUi application UI class.
* Interacts with the user through the UI and request message processing
* from the handler class
*/
class CRpsAppUi : public CQikAppUi, public MEngineObserver
	{
	public: // Constructors and destructor

		/**
		* ConstructL.
		* 2nd phase constructor.
		*/
		void ConstructL();

		/**
		* CRpsAppUi.
		* C++ default constructor. This needs to be public due to
		* the way the framework constructs the AppUi
		*/
		CRpsAppUi();

		/**
		* ~CRpsAppUi.
		* Virtual Destructor.
		*/
		virtual ~CRpsAppUi();

		/**
		* UpdateScreen.
		* From MEngineObserver
		*/
		void UpdateScreen();
		
	private:  // Functions from base classes

		/**
		* From CEikAppUi, HandleCommandL.
		* Takes care of command handling.
		* @param aCommand Command to be handled.
		*/
		void HandleCommandL( TInt aCommand );

		/**
		*  HandleStatusPaneSizeChange.
		*  Called by the framework when the application status pane
 		*  size is changed.
		*/
		void HandleStatusPaneSizeChange();
		

	private: // Data

		/**
		* The application view
		* Owned by CRpsAppUi
		*/
		CRpsAppView* iAppView;
		/**
		* The game engine
		* Runs the game loop and inactivity timer
		*/
		CRpsGameEngine* iGameEngine;
	};

#endif // __RPSAPPUI_H__

// End of File

⌨️ 快捷键说明

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