⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 retroblaster.h

📁 symbian系统上的2D图形游戏
💻 H
字号:
// RetroBlaster.h
// ------------
//
// Copyright (c) 2000 Symbian Ltd.  All rights reserved.
//

////////////////////////////////////////////////////////////////////
// RetroBlaster 
// ----------
//
//
// The class definitions for the simple example application
// containing a single view with the text "Hello World !" drawn
// on it.
//
// The class definitions are:
//
// CExampleApplication 
// CExampleAppUi
// CRetroAppViewOld
// CExampleDocument
//
//
////////////////////////////////////////////////////////////////////
#ifndef __RETROBLASTER_H
#define __RETROBLASTER_H

#include <coeccntx.h>

#include <eikenv.h>
#include <eikappui.h>
#include <eikapp.h>
#include <eikdoc.h>
#include <eikmenup.h>

#include <eikon.hrh>

//#include <RetroBlaster.rsg>
//#include "RetroBlaster.hrh"



////////////////////////////////////////////////////////////////////////
//
// CExampleApplication
//
////////////////////////////////////////////////////////////////////////

class CExampleApplication : public CEikApplication
	{
private: 
	           // Inherited from class CApaApplication
	CApaDocument* CreateDocumentL();
	TUid AppDllUid() const;
	};

////////////////////////////////////////////////////////////////////////
//
// CRetroAppViewOld
//
////////////////////////////////////////////////////////////////////////

class CBall;
class CRetroEngineOld;
class CImageFactory;

class CRetroAppViewOld : public CCoeControl
    {
public:
	static CRetroAppViewOld* NewL(const TRect& aRect);
	CRetroAppViewOld();
	~CRetroAppViewOld();
    void ConstructL(const TRect& aRect);

private:
	           // Inherited from CCoeControl
	void Draw( const TRect& aRect ) const;

private:

	void StartTimer();
	void DoPeriodTask();
	static TInt Period(TAny* aPtr);

	void UpdateDisplay() const;
//	void DoSimulationCycle();

private:
	CFbsBitmap* iOffScreenBitmap;
	CFbsBitmapDevice* iOffScreenBitmapDevice;
	CFbsBitGc* iOffScreenBitmapGc;
	
	CPeriodic* iPeriodicTimer;

	CRetroEngineOld* iEngine;
	CImageFactory* iImageFactory;
    };


////////////////////////////////////////////////////////////////////////
//
// CExampleAppUi
//
////////////////////////////////////////////////////////////////////////
class CExampleAppUi : public CEikAppUi
    {
public:
    void ConstructL();
	~CExampleAppUi();

private:
              // Inherirted from class CEikAppUi
	void HandleCommandL(TInt aCommand);

private:
	CCoeControl* iAppView;
	};


////////////////////////////////////////////////////////////////////////
//
// CExampleDocument
//
////////////////////////////////////////////////////////////////////////
class CExampleDocument : public CEikDocument
	{
public:
	static CExampleDocument* NewL(CEikApplication& aApp);
	CExampleDocument(CEikApplication& aApp);
	void ConstructL();
private: 
	           // Inherited from CEikDocument
	CEikAppUi* CreateAppUiL();
	};


#endif

⌨️ 快捷键说明

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