Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Game.h 704B

123456789101112131415161718192021222324252627282930313233343536
  1. /*!
  2. * \file include/Game.h
  3. * \brief Gameplay Handler
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _GAME_H_
  8. #define _GAME_H_
  9. #include <string>
  10. #include "Entity.h"
  11. class Game {
  12. public:
  13. static void destroy();
  14. static bool isLoaded() { return mLoaded; }
  15. static int loadLevel(std::string level);
  16. static void handleAction(ActionEvents action, bool isFinished);
  17. static void handleMouseMotion(int xrel, int yrel, int xabs, int yabs);
  18. static void handleControllerAxis(float value, KeyboardButton axis);
  19. static Entity& getLara();
  20. static void setLara(long lara);
  21. private:
  22. static bool mLoaded;
  23. static long mLara;
  24. static bool activeEvents[ActionEventCount];
  25. };
  26. #endif