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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 <vector>
  10. #include "Camera.h"
  11. #include "Entity.h"
  12. #include "Render.h"
  13. #include "TombRaider.h"
  14. #include "World.h"
  15. /*!
  16. * \brief Game abstraction
  17. */
  18. class Game {
  19. public:
  20. Game();
  21. ~Game();
  22. int initialize();
  23. bool isLoaded();
  24. int loadLevel(const char *level);
  25. void destroy();
  26. void handleAction(ActionEvents action, bool isFinished);
  27. void handleMouseMotion(int xrel, int yrel);
  28. unsigned int getTextureStart();
  29. unsigned int getTextureOffset();
  30. Entity &getLara();
  31. private:
  32. void processPakSounds();
  33. void processTextures();
  34. void processSprites();
  35. void processMoveables();
  36. void processMoveable(int index, int i, int object_id);
  37. void processModels();
  38. void processRooms();
  39. #ifdef EXPERIMENTAL
  40. void setupTextureColor(texture_tri_t *r_tri, float *colorf);
  41. #endif
  42. char *mName;
  43. bool mLoaded;
  44. TombRaider mTombRaider;
  45. unsigned int mTextureStart;
  46. unsigned int mTextureOffset;
  47. int mLara;
  48. };
  49. Game &getGame();
  50. #endif