#ifndef WORLDSCENE_HPP #define WORLDSCENE_HPP #include "Scene.hpp" #include "Map.hpp" #include class WorldScene : public Scene { public: constexpr static float MAX_ZOOM = 10; constexpr static float MIN_ZOOM = 1/2.0; constexpr static int DEFAULT_TILE_SIZE_PX = 20; WorldScene(sf::RenderWindow &window); virtual void render(); virtual void resize(const sf::Event::SizeEvent &size); virtual void zoom(float factor); virtual void pan(int dx, int dy); private: float _zoom = 1; unsigned _tileSize; Map _map; }; #endif