diff options
author | HampusM <hampus@hampusmat.com> | 2022-02-15 20:27:51 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-02-15 20:27:51 +0100 |
commit | 5dae8f8d10d506abc3c75a1f66c1dfe620c84fc1 (patch) | |
tree | 2bfb6efef0535a35bab1da811a5f69cb5203dff9 /src/app/options.hpp | |
parent | 9147551cd21d565f9503e3ebbcd2121e284d88d5 (diff) |
refactor: improve project design
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; +}; |