📄 cmodeltitle.h
字号:
///////////////////////////////////////////////////////////////////////////////
//
// CModelTitle.h
//
// Copyright (c) 2003 Forum Nokia. All rights reserved.
//
// Technology developed by Rocket Science Oy Ltd
//
///////////////////////////////////////////////////////////////////////////////
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -