?? rungame.h
字號:
/* game runner * Template CS game * (C)2001 Mat Sutcliffe. See license.txt for license info (GPL) */#ifndef __RUNGAME_H__#define __RUNGAME_H__#include <csutil/ref.h>#include <iutil/objreg.h>#include <iutil/eventh.h>#include <iutil/eventq.h>#include <ivaria/conin.h>#include <ivideo/graph2d.h>#include <ivideo/graph3d.h>#include <csutil/hashmap.h>#include <csutil/binder.h>#include <ivaria/perfstat.h>#include "sound.h"#include "console.h"#include "game/game.h"#include "menu/menu.h"struct rsoption_t { char *str; G3D_RENDERSTATEOPTION num;};class GameRunner : public iEventHandler { private: Sound *sound; Console *console; Game *game; Menu *menu; csRef<iConsoleInput> conin; csRef<iConsoleOutput> conout; csRef<iConfigManager> conf; csInputBinder *binder; csRef<iEventQueue> eventq; csRef<iGraphics2D> gfx2d; csRef<iGraphics3D> gfx3d; static rsoption_t rsoptions[]; csHashMap *cmdhash; bool canvas_off; csRef<iPerfStats> stats; csRef<iFont> g2dfont; bool fps_on; void fps(); public: SCF_DECLARE_IBASE; bool HandleEvent(iEvent &); void refreshconf(); GameRunner(Sound *, Console *, Game *, Menu *, iObjectRegistry *); virtual ~GameRunner();};#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -