diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-08 15:03:51 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-08 15:03:51 -0500 |
commit | 7ea3569e3894f19fbae6cfdb3406f2240570e3c1 (patch) | |
tree | e04caa4058baa9f0a9ff46771eef903be49ce3cb /generator/form.h | |
parent | 6816abc1e89fd955524d7c772477d6483d12cbf9 (diff) | |
download | verbly-7ea3569e3894f19fbae6cfdb3406f2240570e3c1.tar.gz verbly-7ea3569e3894f19fbae6cfdb3406f2240570e3c1.tar.bz2 verbly-7ea3569e3894f19fbae6cfdb3406f2240570e3c1.zip |
Added a bunch of stuff for making LINGO puzzles
Diffstat (limited to 'generator/form.h')
-rw-r--r-- | generator/form.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/generator/form.h b/generator/form.h index f3dd779..c83bbdc 100644 --- a/generator/form.h +++ b/generator/form.h | |||
@@ -15,7 +15,7 @@ namespace verbly { | |||
15 | 15 | ||
16 | // Constructor | 16 | // Constructor |
17 | 17 | ||
18 | explicit form(std::string text); | 18 | form(std::string text, int anagram_set_id); |
19 | 19 | ||
20 | // Mutators | 20 | // Mutators |
21 | 21 | ||
@@ -48,6 +48,21 @@ namespace verbly { | |||
48 | return length_; | 48 | return length_; |
49 | } | 49 | } |
50 | 50 | ||
51 | int getAnagramSetId() const | ||
52 | { | ||
53 | return anagram_set_id_; | ||
54 | } | ||
55 | |||
56 | void setReverseId(int id) | ||
57 | { | ||
58 | reverse_id_ = id; | ||
59 | } | ||
60 | |||
61 | int getReverseId() const | ||
62 | { | ||
63 | return reverse_id_; | ||
64 | } | ||
65 | |||
51 | std::set<const pronunciation*> getPronunciations() const | 66 | std::set<const pronunciation*> getPronunciations() const |
52 | { | 67 | { |
53 | return pronunciations_; | 68 | return pronunciations_; |
@@ -62,6 +77,8 @@ namespace verbly { | |||
62 | const int complexity_; | 77 | const int complexity_; |
63 | const bool proper_; | 78 | const bool proper_; |
64 | const int length_; | 79 | const int length_; |
80 | const int anagram_set_id_; | ||
81 | int reverse_id_ = -1; | ||
65 | 82 | ||
66 | std::set<const pronunciation*> pronunciations_; | 83 | std::set<const pronunciation*> pronunciations_; |
67 | 84 | ||