#pragma once #include "Cursor.hpp" #include "cfg.hpp" class Menu { private: static const int _ybegin = CFG_DHEIGHT - 24; static const int _yend = CFG_DHEIGHT; static const int _entries = 3; static const int _wentry = CFG_DWIDTH / _entries; bool _was_down; int _hovered; int _selected; public: Menu(); void update(const Cursor& cursor); void draw() const; int get_selection() const; };