// // Created by SeanOMik on 7/2/2020. // Github: https://github.com/SeanOMik // Email: seanomik@gmail.com // #ifndef SIMPLEENGINE_GAME_H #define SIMPLEENGINE_GAME_H #include #include #include #include #include "entity.h" namespace simpleengine { class Event; class Game { public: Game(int w, int h, const std::string& window_name); virtual ~Game(); void UpdateSFMLEvents(); void Update(); void RenderWindow(); void RenderItems(); void ExitGame(); int Run(); void AddEvent(Event* event); sf::RenderWindow* GetWindow(); private: sf::RenderWindow* window; sf::Clock delta_time_clock; // Delta time clock float delta_time; // Delta time std::stack events; }; } #endif //GAMEENGINE_GAME_H