www.pudn.com > Example2D.rar > 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  
#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