demogame.h

来自「五行MMORPG引擎系统V1.0」· C头文件 代码 · 共 40 行

H
40
字号
//-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------

#ifndef _TORQUEGAME_H_
#define _TORQUEGAME_H_

#ifndef TGE_RPGCLIENT2 /// TGE_RPGClient2 增加RPGGame接口管理

#ifndef _GAMEINTERFACE_H_
#include "platform/gameInterface.h"
#endif

/// Implementation of GameInterface for the demo app.
class DemoGame : public GameInterface
{
public:
   void textureKill();
   void textureResurrect();
   void refreshWindow();

   int main(int argc, const char **argv);

   void processPacketReceiveEvent(PacketReceiveEvent *event);
   void processMouseMoveEvent(MouseMoveEvent *event);
   void processInputEvent(InputEvent *event);
   void processQuitEvent();
   void processTimeEvent(TimeEvent *event);
   void processConsoleEvent(ConsoleEvent *event);
   void processConnectedAcceptEvent(ConnectedAcceptEvent *event);
   void processConnectedReceiveEvent(ConnectedReceiveEvent *event);
   void processConnectedNotifyEvent(ConnectedNotifyEvent *event);
};

#endif ///#ifndef TGE_RPGCLIENT2 /// TGE_RPGClient2


#endif

⌨️ 快捷键说明

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