From 7ea3569e3894f19fbae6cfdb3406f2240570e3c1 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 8 Dec 2022 15:03:51 -0500 Subject: Added a bunch of stuff for making LINGO puzzles --- generator/form.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'generator/form.h') 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 { // Constructor - explicit form(std::string text); + form(std::string text, int anagram_set_id); // Mutators @@ -48,6 +48,21 @@ namespace verbly { return length_; } + int getAnagramSetId() const + { + return anagram_set_id_; + } + + void setReverseId(int id) + { + reverse_id_ = id; + } + + int getReverseId() const + { + return reverse_id_; + } + std::set getPronunciations() const { return pronunciations_; @@ -62,6 +77,8 @@ namespace verbly { const int complexity_; const bool proper_; const int length_; + const int anagram_set_id_; + int reverse_id_ = -1; std::set pronunciations_; -- cgit 1.4.1