diff options
author | HampusM <hampus@hampusmat.com> | 2022-02-16 19:31:24 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-02-16 19:31:24 +0100 |
commit | 91286f9dbb85fc2805345ba72468d5f145228be8 (patch) | |
tree | 9ad87c8d30e282e0c3478150efd901ef3dc17cca /src/app/options.cpp | |
parent | 5dae8f8d10d506abc3c75a1f66c1dfe620c84fc1 (diff) |
refactor: create app class & simplify app options
Diffstat (limited to 'src/app/options.cpp')
-rw-r--r-- | src/app/options.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/app/options.cpp b/src/app/options.cpp deleted file mode 100644 index cb6e20e..0000000 --- a/src/app/options.cpp +++ /dev/null @@ -1,43 +0,0 @@ -#include "options.hpp" - -#include <utility> - -std::shared_ptr<Bounds> AppOptions::maze_bounds() const -{ - return _maze_bounds; -} - -void AppOptions::maze_bounds(std::shared_ptr<Bounds> maze_bounds) -{ - _maze_bounds = std::move(maze_bounds); -} - -std::shared_ptr<Vector2> AppOptions::start_coords() const -{ - return _start_coords; -} - -void AppOptions::start_coords(std::shared_ptr<Vector2> 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<RandomNumberGenerator> AppOptions::random_gen() const -{ - return _random_gen; -} - -void AppOptions::random_gen(std::shared_ptr<RandomNumberGenerator> random_gen) -{ - _random_gen = std::move(random_gen); -} |