OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Game.h
Go to the documentation of this file.
1 
8 #ifndef _GAME_H_
9 #define _GAME_H_
10 
11 #include <string>
12 
13 #include "Entity.h"
14 
15 class Game {
16  public:
17  static void destroy();
18 
19  static bool isLoaded() { return mLoaded; }
20  static int loadLevel(std::string level);
21 
22  static void handleAction(ActionEvents action, bool isFinished);
23  static void handleMouseMotion(int xrel, int yrel, int xabs, int yabs);
24  static void handleControllerAxis(float value, KeyboardButton axis);
25 
26  static Entity& getLara();
27  static void setLara(long lara);
28 
29  private:
30  static bool mLoaded;
31  static long mLara;
33 };
34 
35 #endif
36 
static void handleMouseMotion(int xrel, int yrel, int xabs, int yabs)
Definition: Game.cpp:101
static void handleControllerAxis(float value, KeyboardButton axis)
Definition: Game.cpp:108
static bool mLoaded
Definition: Game.h:30
KeyboardButton
Definition: global.h:34
Things in the World.
static long mLara
Definition: Game.h:31
ActionEvents
Definition: global.h:15
Definition: Entity.h:11
static void handleAction(ActionEvents action, bool isFinished)
Definition: Game.cpp:84
static bool activeEvents[ActionEventCount]
Definition: Game.h:32
Definition: Game.h:15
static void setLara(long lara)
Definition: Game.cpp:121
static Entity & getLara()
Definition: Game.cpp:115
static int loadLevel(std::string level)
Definition: Game.cpp:41
static void destroy()
Definition: Game.cpp:25
static bool isLoaded()
Definition: Game.h:19