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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 "Camera.h"
  10. #include "global.h"
  11. #include "Render.h"
  12. #include "TombRaider.h"
  13. #include "World.h"
  14. /*!
  15. * \brief Game abstraction
  16. */
  17. class Game {
  18. public:
  19. Game();
  20. ~Game();
  21. int initialize();
  22. int loadLevel(const char *level);
  23. void destroy();
  24. void handleAction(ActionEvents action, bool isFinished);
  25. void handleMouseMotion(int xrel, int yrel);
  26. void display();
  27. void percentCallback(int percent);
  28. World mWorld;
  29. entity_t *mLara;
  30. Render *mRender;
  31. Camera *mCamera;
  32. private:
  33. bool mLoaded;
  34. char *mName;
  35. TombRaider mTombRaider;
  36. unsigned int mTextureStart;
  37. unsigned int mTextureLevelOffset;
  38. unsigned int mTextureOffset;
  39. };
  40. #endif