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 627B

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