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.

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