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.

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