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