ducati.h

来自「一个在brew 平台下开发的摩托车程序源代码」· C头文件 代码 · 共 54 行

H
54
字号
//////////////////////////////////////////////////////////////////////
// File: Ducati.h
// Author: Ying Zhang
// Decription: Root interface between the game app and Brew
//////////////////////////////////////////////////////////////////////

#ifndef _DUCATI_GAME 
#define _DUCATI_GAME

/*===============================================================================
INCLUDES AND VARIABLE DEFINITIONS
=============================================================================== */
#include "AEEAppGen.h"          // Applet interface definitions
#include "AEEModGen.h"          // Module interface definitions
#include "AEEShell.h"           // Shell interface definitions
#include "AEEStdLib.h"	

#define VERSION "1.0.0"
#include "DUCATIRACING.BID"			// Brew ID information
#include "GameFrame.h"

#define EVT_NEXT_FRAME EVT_USER+1
//#define DEBUG
#ifdef DEBUG
#include "assert.h"
#endif

class GameFrame;

class Ducati : public AEEApplet
{
public:
	// Wrappers for interfacing protected member functions with AEEAplet API	
	static boolean  HandleEvent(Ducati* pDucati, AEEEvent eCode, uint16 wParam, uint32 dwParam);
	static void	    FreeData(Ducati * pDucati);

protected:
	boolean			AppHandleEvent(AEEEvent eCode, uint16 wParam, uint32 dwParam);
	void			AppFreeData();

private:
	GameFrame*	m_pGameFrame;
};

void* operator new(size_t size);	// new operator
void* operator new [](size_t size);
void operator delete(void * ptr);		// delete operator
void operator delete [](void * ptr);
void* DebugMalloc(size_t size);
void DebugFree(void* ptr);


#endif // #ifndef _DUCATI_GAME

⌨️ 快捷键说明

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