[go: up one dir, main page]

Menu

[r22]: / Game.h  Maximize  Restore  History

Download this file

31 lines (26 with data), 626 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _GAME_H_
#define _GAME_H_
class Game : public IEventReceiver
{
public:
Game(CSettings* sett, CLog* logger);
int start();
virtual bool OnEvent(const SEvent& event);
bool IsKeyDown(EKEY_CODE keyCode);
void draw();
void drawAnaglyph();
~Game();
private:
video::IVideoDriver* driver;
scene::ISceneManager* smgr;
gui::IGUIEnvironment* env;
bool KeyIsDown[KEY_KEY_CODES_COUNT];
IrrlichtDevice* device;
ICameraSceneNode* camera;
CSettings* settings;
CLog* log;
CMapLoader* loader;
bool anaglyph;
scene::ICameraSceneNode* pAnaglyphCamera;
};
#endif