1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#pragma once #include <memory> #include "Screen.h" #include "Stats.h" class OverScreen : public Screen { public: explicit OverScreen(std::shared_ptr<Stats> stats); void update(float dt) override; void draw() override; private: std::shared_ptr<Stats> m_stats; int m_died_x; };