aboutsummaryrefslogtreecommitdiff
path: root/src/app/options.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-02-16 19:31:24 +0100
committerHampusM <hampus@hampusmat.com>2022-02-16 19:31:24 +0100
commit91286f9dbb85fc2805345ba72468d5f145228be8 (patch)
tree9ad87c8d30e282e0c3478150efd901ef3dc17cca /src/app/options.hpp
parent5dae8f8d10d506abc3c75a1f66c1dfe620c84fc1 (diff)
refactor: create app class & simplify app options
Diffstat (limited to 'src/app/options.hpp')
-rw-r--r--src/app/options.hpp32
1 files changed, 5 insertions, 27 deletions
diff --git a/src/app/options.hpp b/src/app/options.hpp
index 0023283..7e691e3 100644
--- a/src/app/options.hpp
+++ b/src/app/options.hpp
@@ -7,32 +7,10 @@
#include <memory>
#include <string_view>
-/**
- * Application options.
- */
-class AppOptions
+struct 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;
+ std::shared_ptr<Bounds> maze_bounds;
+ std::shared_ptr<Vector2> start_coords;
+ std::string_view wall;
+ std::shared_ptr<RandomNumberGenerator> random_gen;
};