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.

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. Game();
  15. int initialize();
  16. void destroy();
  17. bool isLoaded() { return mLoaded; }
  18. int loadLevel(const char* level);
  19. void display();
  20. void handleAction(ActionEvents action, bool isFinished);
  21. void handleMouseMotion(int xrel, int yrel, int xabs, int yabs);
  22. void handleControllerAxis(float value, KeyboardButton axis);
  23. void handleControllerButton(KeyboardButton button, bool released);
  24. Entity& getLara();
  25. void setLara(long lara);
  26. private:
  27. bool mLoaded;
  28. long mLara;
  29. bool activeEvents[ActionEventCount];
  30. };
  31. Game& getGame();
  32. #endif