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

📄 rpsplaytimer.cpp

📁 基于symbian UIQ 的一款古老的飞机游戏。对入门学习很有帮助。
💻 CPP
字号:
// Copyright (c) Symbian Ltd 2008. All rights reserved.

#include "rpsPlayTimer.h"
#include "rpsGameScreens.h"

CPlayTimer* CPlayTimer::NewL(TTimeIntervalMicroSeconds32 aInterval, CPlayScreen& aPlayScreen)
	{
	CPlayTimer* me = new (ELeave) CPlayTimer(aInterval, aPlayScreen);
	CleanupStack::PushL(me);
	me->ConstructL();
	CleanupStack::Pop(me);
	return (me);
	}

CPlayTimer::~CPlayTimer()
	{
	Cancel();
	}

void CPlayTimer::Start()
	{
	After(iInterval);
	}

void CPlayTimer::RunL()
	{
	iPlayScreen.PlayTimeout();
	}

CPlayTimer::CPlayTimer(TTimeIntervalMicroSeconds32 aInterval, CPlayScreen& aPlayScreen)
: CTimer(CActive::EPriorityStandard), iInterval(aInterval), iPlayScreen(aPlayScreen)
	{
	CActiveScheduler::Add(this);
	}

⌨️ 快捷键说明

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