From 92bec13dec53933a9cf8045ab486b47dc13fe46f Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 12 Feb 2018 20:33:48 +0100 Subject: Remove Actor::Type and Scene::Type in favor of dynamic_cast() --- src/main/headers/Scene.hpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/main/headers/Scene.hpp') diff --git a/src/main/headers/Scene.hpp b/src/main/headers/Scene.hpp index 2183d63..2d720a9 100644 --- a/src/main/headers/Scene.hpp +++ b/src/main/headers/Scene.hpp @@ -6,13 +6,6 @@ class Scene { public: - enum Type - { - WORLD, MENU - }; - - const Type type; - Scene() = delete; virtual void render() = 0; @@ -25,7 +18,7 @@ protected: float _zoom = 1; sf::RenderWindow &_window; - Scene(sf::RenderWindow &window, Type _type) : type(_type), _window(window) {} + Scene(sf::RenderWindow &window) : _window(window) {} }; #endif -- cgit v1.2.1