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

📄 gametimer.h

📁 手机 GAME c++ 版
💻 H
字号:
////////////////////////////////////////////////////////////////////////
//
// GameTimer.h
//
// Copyright (c) 2003 Nokia Phones Ltd  All rights reserved.
//
////////////////////////////////////////////////////////////////////////

#ifndef _GAMETIMER_H_
#define _GAMETIMER_H_

////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////

#include <e32base.h>
#include <e32std.h>

////////////////////////////////////////////////////////////////////////

class MGameTimerObserver;

////////////////////////////////////////////////////////////////////////

class CGameTimer : public CBase
	{
	public:
		enum { StopTicking, TickAgain };

	public:
		static CGameTimer* NewL(MGameTimerObserver& aObserver);
		static CGameTimer* NewLC(MGameTimerObserver& aObserver);

		~CGameTimer();

		void Restart();
		TBool IsActive();		
		void CancelTimer();

	protected:
		CGameTimer(MGameTimerObserver& aObserver);

	private:
		void ConstructL();

		TInt HandleGameTimerCompleted();
		TInt HandleGameTimerCompletedL();

		static TInt TimerCompleted(TAny* aObject);

	private:
		MGameTimerObserver& iObserver;
		CPeriodic* iPeriodicTimer;
	};

////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////

#endif

////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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