From 5dae8f8d10d506abc3c75a1f66c1dfe620c84fc1 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 15 Feb 2022 20:27:51 +0100 Subject: refactor: improve project design --- src/app/options.hpp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/app/options.hpp (limited to 'src/app/options.hpp') diff --git a/src/app/options.hpp b/src/app/options.hpp new file mode 100644 index 0000000..0023283 --- /dev/null +++ b/src/app/options.hpp @@ -0,0 +1,38 @@ +#pragma once + +#include "engine/bounds.hpp" +#include "engine/vector2.hpp" +#include "random_generator.hpp" + +#include +#include + +/** + * Application options. + */ +class AppOptions +{ +public: + AppOptions() = default; + + [[nodiscard]] std::shared_ptr maze_bounds() const; + void maze_bounds(std::shared_ptr maze_bounds); + + [[nodiscard]] std::shared_ptr start_coords() const; + void start_coords(std::shared_ptr start_coords); + + [[nodiscard]] std::string_view wall() const; + void wall(std::string_view wall); + + [[nodiscard]] std::shared_ptr random_gen() const; + void random_gen(std::shared_ptr random_gen); + +private: + std::shared_ptr _maze_bounds = nullptr; + + std::shared_ptr _start_coords = nullptr; + + std::string_view _wall; + + std::shared_ptr _random_gen = nullptr; +}; -- cgit v1.2.3-18-g5258