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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. Entity& getLara();
  25. void setLara(long lara);
  26. private:
  27. void processPakSounds();
  28. void processTextures();
  29. void processSprites();
  30. void processMoveables();
  31. void processMoveable(int index, int i, int object_id);
  32. void processModels();
  33. void processRooms();
  34. std::string levelName;
  35. bool mLoaded;
  36. TombRaider mTombRaider;
  37. long mLara;
  38. };
  39. Game& getGame();
  40. #endif