2022-01-17 19:57:00 +01:00
|
|
|
#ifndef BILLYSHEET_CONTROLLER_HPP
|
|
|
|
#define BILLYSHEET_CONTROLLER_HPP
|
|
|
|
|
2022-01-17 22:00:26 +01:00
|
|
|
namespace character {
|
2024-01-28 20:31:50 +01:00
|
|
|
class CharacterSheet;
|
2022-01-17 22:00:26 +01:00
|
|
|
}
|
2022-01-17 19:57:00 +01:00
|
|
|
|
2022-01-17 22:00:26 +01:00
|
|
|
namespace gui::menu {
|
2024-01-28 20:31:50 +01:00
|
|
|
class MenuData;
|
2022-01-17 22:00:26 +01:00
|
|
|
}
|
2022-01-17 19:57:00 +01:00
|
|
|
|
2022-01-17 22:00:26 +01:00
|
|
|
class Controller final {
|
|
|
|
private:
|
2024-01-28 20:31:50 +01:00
|
|
|
character::CharacterSheet &sheet;
|
|
|
|
gui::menu::MenuData &menu_data;
|
2022-01-17 22:00:26 +01:00
|
|
|
|
|
|
|
public:
|
2024-01-28 20:31:50 +01:00
|
|
|
Controller() = delete;
|
2022-01-17 22:00:26 +01:00
|
|
|
|
2024-01-28 20:31:50 +01:00
|
|
|
explicit Controller(character::CharacterSheet &sheet, gui::menu::MenuData &menuData) :
|
|
|
|
sheet(sheet), menu_data(menuData) {}
|
2022-01-17 22:00:26 +01:00
|
|
|
|
2024-01-28 20:31:50 +01:00
|
|
|
~Controller() noexcept = default;
|
2022-01-17 22:00:26 +01:00
|
|
|
|
2024-01-28 20:31:50 +01:00
|
|
|
void control_menu() const noexcept;
|
2022-01-20 22:30:14 +01:00
|
|
|
|
2024-01-28 20:31:50 +01:00
|
|
|
void control_sheet() const noexcept;
|
2022-01-17 19:57:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //BILLYSHEET_CONTROLLER_HPP
|