Open Source Tomb Raider Engine
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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