diff options
Diffstat (limited to 'src/app/options.hpp')
-rw-r--r-- | src/app/options.hpp | 38 |
1 files changed, 38 insertions, 0 deletions
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 <memory> +#include <string_view> + +/** + * Application options. + */ +class AppOptions +{ +public: + AppOptions() = default; + + [[nodiscard]] std::shared_ptr<Bounds> maze_bounds() const; + void maze_bounds(std::shared_ptr<Bounds> maze_bounds); + + [[nodiscard]] std::shared_ptr<Vector2> start_coords() const; + void start_coords(std::shared_ptr<Vector2> start_coords); + + [[nodiscard]] std::string_view wall() const; + void wall(std::string_view wall); + + [[nodiscard]] std::shared_ptr<RandomNumberGenerator> random_gen() const; + void random_gen(std::shared_ptr<RandomNumberGenerator> random_gen); + +private: + std::shared_ptr<Bounds> _maze_bounds = nullptr; + + std::shared_ptr<Vector2> _start_coords = nullptr; + + std::string_view _wall; + + std::shared_ptr<RandomNumberGenerator> _random_gen = nullptr; +}; |