#pragma once #include #include #include //Default object used for menues template class Cursor { public: std::vector items; unsigned int selected; bool active; Cursor(); void activate(std::vector _items); void deactivate(); void draw(float _x_start, float _y_start, float _y_offset, ALLEGRO_FONT* _font); void up(); void down(); T get_selected(); private: float x_start; float y_start; float y_offset; ALLEGRO_FONT* font; std::vector get_item_strings(); void update_selector(); void redraw(); };