📄 ducati.h
字号:
//////////////////////////////////////////////////////////////////////
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -