123456789101112131415161718192021222324252627282930313233343536 |
- /*!
- * \file include/Game.h
- * \brief Gameplay Handler
- *
- * \author xythobuz
- */
-
- #ifndef _GAME_H_
- #define _GAME_H_
-
- #include <string>
-
- #include "Entity.h"
-
- class Game {
- public:
- static void destroy();
-
- static bool isLoaded() { return mLoaded; }
- static int loadLevel(std::string level);
-
- static void handleAction(ActionEvents action, bool isFinished);
- static void handleMouseMotion(int xrel, int yrel, int xabs, int yabs);
- static void handleControllerAxis(float value, KeyboardButton axis);
-
- static Entity& getLara();
- static void setLara(long lara);
-
- private:
- static bool mLoaded;
- static long mLara;
- static bool activeEvents[ActionEventCount];
- };
-
- #endif
|