⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mgame.h

📁 手机开发3D应用平台,开发平台是诺基亚的carbird,这是一个很有用的东西,希望能帮助你进行移动开发.
💻 H
字号:


#ifndef __MGAME_H__
#define __MGAME_H__

// INCLUDES
#include "TBitmap.h"
   

// CLASS DECLARATION

/**
*  Base class for game
*  CEngine can run games derived from this classe functions
*/

class MGame
	{
	public:

		/// Virtual destructor
		virtual ~MGame() {}

		/// Drawing function
		/// all game drawing should be done here
		virtual void Draw( const TBitmap& aScreen ) = 0;

		/// Moving function
		/// all game physics and calculations
		/// should be done here
		virtual void Move( TUint8* aKey ) = 0;
		
		/// Helper function to get polygon count
		virtual TInt PolygonCount() = 0;

		/// Gets commands from engine
		/// Engine gets these commands from application framework
		/// @param aCommand command index
		virtual void Command( TInt aCommand ) = 0;

	};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -