From c01f67b284db9c987680d121c11df2d9da56e2d0 Mon Sep 17 00:00:00 2001 From: aleksav013 Date: Mon, 7 Jun 2021 16:51:43 +0200 Subject: Smart pointers --- src/includes/State.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/includes/State.hpp') diff --git a/src/includes/State.hpp b/src/includes/State.hpp index c9dffb9..5623bbf 100644 --- a/src/includes/State.hpp +++ b/src/includes/State.hpp @@ -2,15 +2,16 @@ #define STATE_H #include +#include class State { private: - sf::RenderWindow *prozor; + std::shared_ptr prozor; int visina,sirina; bool ischanged=0,newgame=0,pause=0,kraj=0; - std::map font; - std::map tex; + std::map> font; + std::map> tex; sf::RectangleShape podloga; sf::Text pausetext,krajtext; @@ -23,7 +24,6 @@ class State void keyboard(); public: State(); - ~State(); void loop(); }; -- cgit v1.2.3