diff options
author | Nao Pross <naopross@thearcway.org> | 2018-02-12 20:33:48 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-02-12 20:33:48 +0100 |
commit | 92bec13dec53933a9cf8045ab486b47dc13fe46f (patch) | |
tree | de140535d5e6941bfd0f251e851f8a331ce6edf2 /src/main/headers/Scene.hpp | |
parent | Fix pan (diff) | |
download | Subconscious-old-92bec13dec53933a9cf8045ab486b47dc13fe46f.tar.gz Subconscious-old-92bec13dec53933a9cf8045ab486b47dc13fe46f.zip |
Remove Actor::Type and Scene::Type in favor of dynamic_cast<T>()
Diffstat (limited to '')
-rw-r--r-- | src/main/headers/Scene.hpp | 9 |
1 files changed, 1 insertions, 8 deletions
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 |