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.

123456789101112131415161718192021222324252627282930313233343536373839
  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 "global.h"
  10. #include "TombRaider.h"
  11. /*!
  12. * \brief Game abstraction
  13. */
  14. class Game {
  15. public:
  16. // Throw exception with negative integer error code if fails
  17. Game(const char *level);
  18. ~Game();
  19. void handleAction(ActionEvents action, bool isFinished);
  20. void handleMouseMotion(int xrel, int yrel);
  21. void display();
  22. void percentCallback(int percent);
  23. private:
  24. char *mName;
  25. TombRaider mTombRaider;
  26. };
  27. #endif