diff options
Diffstat (limited to 'src/main/headers/WorldScene.hpp')
-rw-r--r-- | src/main/headers/WorldScene.hpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/main/headers/WorldScene.hpp b/src/main/headers/WorldScene.hpp new file mode 100644 index 0000000..acdda63 --- /dev/null +++ b/src/main/headers/WorldScene.hpp @@ -0,0 +1,33 @@ +#ifndef WORLDSCENE_HPP +#define WORLDSCENE_HPP + +#include "Scene.hpp" +#include "Map.hpp" + +#include <SFML/Graphics.hpp> + + +class WorldScene : public Scene +{ +public: + constexpr static int ZOOM_MIN = 1; + constexpr static int ZOOM_MAX = 100; + constexpr static int DEFAULT_TILE_SIZE_PX = 20; + + WorldScene(); + + virtual void render(sf::RenderWindow &window); + + virtual void zoom(int value); + virtual void pan(int dx, int dy); + +private: + Map map; + + unsigned _tileSize; + + int _panX = 0; + int _panY = 0; +}; + +#endif |