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 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 "global.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. //! \fixme should be private
  29. entity_t *mLara;
  30. private:
  31. void processPakSounds();
  32. void processTextures();
  33. void processSprites();
  34. void processMoveables();
  35. void processMoveable(int index, int i, int *ent,
  36. std::vector<skeletal_model_t *> &cache2,
  37. std::vector<unsigned int> &cache, int object_id);
  38. void processModels();
  39. void processRooms();
  40. void setupTextureColor(texture_tri_t *r_tri, float *colorf);
  41. char *mName;
  42. bool mLoaded;
  43. TombRaider mTombRaider;
  44. unsigned int mTextureStart;
  45. unsigned int mTextureOffset;
  46. };
  47. #endif