msystem.h
来自「symbian 下的mario游戏源代码」· C头文件 代码 · 共 103 行
H
103 行
/*
============================================================================
* Name : MSystem.h
* Part of : 2DMario
* Description : Definition of MSystem
* Copyright (c) 2007 Nokia Corporation
============================================================================
*/
#ifndef __MSYSTEM_H__
#define __MSYSTEM_H__
// INCLUDE FILES
#include <e32base.h>
#include "Global.h"
// CLASS DECLARATION
/**
* MSystem is a base class for the system wide functions
*/
class MSystem
{
public:
/**
* Virtual destructor
*/
virtual ~MSystem() {}
/**
* Exit the game.
*/
virtual void Exit() = 0;
/**
* Switch model.
* @param aModel This model is called in next timing callback.
*/
virtual void ChangeModelL( TModel aModel ) = 0;
/**
* Check The state of the key.
* @return TBool Returns ETrue if key is pressed, otherwise EFalse.
*/
virtual TBool KeyState( TInt aKey ) = 0;
/**
* Get the application path.
* @return TFileName Returns the running path of the game.
*/
virtual const TFileName& Path() = 0;
/**
* Add audio
* @param aAudio Audio to be added.
*/
virtual void AddAudio( const TDesC8& aAudio ) = 0;
/**
* Toggle audio on / off
*/
virtual void ToggleAudio() = 0;
/**
* Indicate system that model wants to exit
*/
virtual void PrepareExit() = 0;
/**
* Get keycode for the Select Key
* return TUint8 Keycode for the Select Key
*/
virtual TUint8 SelectKey() = 0;
/**
* Get keycode for the Exit Key
* return TUint8 Keycode for the Exit Key
*/
virtual TUint8 ExitKey() = 0;
/**
* Get keycode for the OK Key
* return TUint8 Keycode for the OK Key
*/
virtual TUint8 OkKey() = 0;
/**
* Get keycode for the Back Key
* return TUint8 Keycode for the Back Key
*/
virtual TUint8 BackKey() = 0;
/**
* Loads ingame music
*/
virtual void LoadMusic() = 0;
};
#endif
// End of file
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?