#pragma once #include #include #include "Text.h" #include "../System/Rect.h" #include "../System/Timer.h" class EventHistory { public: EventHistory(void); ~EventHistory(void); void LogEvent(const std::string& evtText); void Render(void); private: void BakeText(void); std::list _events; Text _titleText; Text _text; Rect _background; Timer _timeToVanish; bool _visible; int _bgx; int _bgy; static const int BOX_WIDTH; static const int BOX_HEIGHT; };