WorldHandler.h 590 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include <string>
  3. #include <vector>
  4. class World;
  5. class WorldHandler
  6. {
  7. private:
  8. WorldHandler();
  9. static WorldHandler* instance;
  10. bool loadingWorld;
  11. World* world;
  12. int worldIndex;
  13. void ChangeWorld(int i);
  14. public:
  15. ~WorldHandler();
  16. static WorldHandler* getInstance(void);
  17. static void init();
  18. void draw(void);
  19. void update(float deltaTime);
  20. void teleportRandom();
  21. bool isPlayerPositionValid(void);
  22. float getHeight(float x, float y);
  23. void Navigate(const std::string &fileName);
  24. void NextWorld();
  25. void PreviousWorld();
  26. std::vector<std::string> worldfiles;
  27. };