diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-11-04 02:37:02 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-11-04 02:37:02 -0500 |
commit | 460b99583bcf6da4462f13ad75856283849904e7 (patch) | |
tree | 9190ac1ce1a9623b1e4a1630bc34eeb5dc6043eb /wizard.h | |
parent | 76bc3b3677062c0c1a6b9fa08ff20d12e470159c (diff) | |
download | wizard-460b99583bcf6da4462f13ad75856283849904e7.tar.gz wizard-460b99583bcf6da4462f13ad75856283849904e7.tar.bz2 wizard-460b99583bcf6da4462f13ad75856283849904e7.zip |
main.cpp does work for standalone entry
Diffstat (limited to 'wizard.h')
-rw-r--r-- | wizard.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/wizard.h b/wizard.h index 9b27143..a02197b 100644 --- a/wizard.h +++ b/wizard.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef WIZARD_H_1014B13E | 1 | #ifndef WIZARD_H_1014B13E |
2 | #define WIZARD_H_1014B13E | 2 | #define WIZARD_H_1014B13E |
3 | 3 | ||
4 | #include <Magick++.h> | ||
5 | |||
4 | #include <random> | 6 | #include <random> |
5 | #include <string> | 7 | #include <string> |
6 | 8 | ||
@@ -9,17 +11,17 @@ | |||
9 | 11 | ||
10 | class wizard { | 12 | class wizard { |
11 | public: | 13 | public: |
12 | wizard(std::string cardsPath, std::string cachePath, std::string outputPath, | 14 | wizard(const cardset& cards, const imagestore& images, std::string text, |
13 | std::string jsonPath, std::mt19937& rng); | 15 | std::mt19937& rng); |
14 | 16 | ||
15 | void run(); | 17 | Magick::Image run(); |
16 | 18 | ||
17 | private: | 19 | private: |
18 | cardset cards_; | 20 | const cardset& cards_; |
19 | imagestore images_; | 21 | const imagestore& images_; |
20 | std::string outputPath_; | 22 | std::string text_; |
21 | std::string jsonPath_; | 23 | |
22 | std::mt19937& rng_; | 24 | std::mt19937 rng_; |
23 | }; | 25 | }; |
24 | 26 | ||
25 | #endif /* end of include guard: WIZARD_H_1014B13E */ | 27 | #endif /* end of include guard: WIZARD_H_1014B13E */ |