cmodeltitle.h
来自「symbian 下的mario游戏源代码」· C头文件 代码 · 共 80 行
H
80 行
/*
============================================================================
* Name : CModelTitle.h
* Part of : 2DMario
* Description : Definition of CModelTitle
* Copyright (c) 2007 Nokia Corporation
============================================================================
*/
#ifndef __CMODELTITLE_H__
#define __CMODELTITLE_H__
// INCLUDE FILES
#include "MModel.h"
#include "MSystem.h"
// FORWARD DECLARATIONS
class CBmFont;
// CLASS DECLARATION
/**
* CModelGame Class for the title screen.
*/
class CModelTitle
: public CBase
, public MModel
{
public:
/**
* Two-phased constructor.
*/
static CModelTitle* NewL( MSystem* aSystem );
/**
* Destructor.
*/
~CModelTitle();
private:
/**
* Default constructor
*/
CModelTitle( MSystem* aSystem );
void ConstructL();
public: // MModel
void ActivateL();
void Deactivate();
void Draw( CBitmap& aTarget );
void Move();
private: // New methods
void LoadMusic();
void DrawRect( CBitmap& aTarget, TRect aRect );
void HandleKeys();
void CursorUp( TInt aLastKey );
void CursorDown( TInt aLastKey );
void Fire( TInt aLastKey );
private: // Data members
MSystem* iSystem;
CBitmap* iBmTitle;
CBitmap* iBmFont;
CBmFont* iFont;
TInt iCursorPos;
TBool iAudio;
TInt iLastKey;
};
#endif
// End of file
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?