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.cpp | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/app/options.cpp (limited to 'src/app/options.cpp') diff --git a/src/app/options.cpp b/src/app/options.cpp new file mode 100644 index 0000000..cb6e20e --- /dev/null +++ b/src/app/options.cpp @@ -0,0 +1,43 @@ +#include "options.hpp" + +#include + +std::shared_ptr AppOptions::maze_bounds() const +{ + return _maze_bounds; +} + +void AppOptions::maze_bounds(std::shared_ptr maze_bounds) +{ + _maze_bounds = std::move(maze_bounds); +} + +std::shared_ptr AppOptions::start_coords() const +{ + return _start_coords; +} + +void AppOptions::start_coords(std::shared_ptr start_coords) +{ + _start_coords = std::move(start_coords); +} + +std::string_view AppOptions::wall() const +{ + return _wall; +} + +void AppOptions::wall(std::string_view wall) +{ + _wall = wall; +} + +std::shared_ptr AppOptions::random_gen() const +{ + return _random_gen; +} + +void AppOptions::random_gen(std::shared_ptr random_gen) +{ + _random_gen = std::move(random_gen); +} -- cgit v1.2.3-18-g5258