| 1234567891011121314151617181920212223242526272829303132333435 |
- #pragma once
- #include <string>
- #include <vector>
- class World;
- class WorldHandler
- {
- private:
- WorldHandler();
- static WorldHandler* instance;
- bool loadingWorld;
- World* world;
- int worldIndex;
- void ChangeWorld(int i);
- public:
-
- ~WorldHandler();
- static WorldHandler* getInstance(void);
- static void init();
- void draw(void);
- void update(float deltaTime);
- bool isPlayerPositionValid(void);
- void Navigate(const std::string &fileName);
- void NextWorld();
- void PreviousWorld();
- std::vector<std::string> worldfiles;
- };
|