mgame.h
来自「This package includes a 3-D game engine 」· C头文件 代码 · 共 49 行
H
49 行
/*
*
============================================================================
* Name : MGame.h
* Part of : Example3D
* Created : 12/14/2003 by Forum Nokia
* Description:
* This is the project specification file for Example3D.
* Initial content was generated by Series 60 AppWizard.
*
* Version : 1.0.0
* Copyright: Forum Nokia
*
============================================================================
*/
#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;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?