Open Source Tomb Raider Engine
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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