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

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