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/pronunciation.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'generator/pronunciation.h') diff --git a/generator/pronunciation.h b/generator/pronunciation.h index 3190e6d..e6dc4b4 100644 --- a/generator/pronunciation.h +++ b/generator/pronunciation.h @@ -13,7 +13,7 @@ namespace verbly { // Constructor - explicit pronunciation(std::string phonemes); + pronunciation(std::string phonemes, int anaphone_set_id); // Accessors @@ -62,6 +62,21 @@ namespace verbly { return stress_; } + int getAnaphoneSetId() const + { + return anaphone_set_id_; + } + + void setReverseId(int id) + { + reverse_id_ = id; + } + + int getReverseId() const + { + return reverse_id_; + } + private: static int nextId_; @@ -72,6 +87,8 @@ namespace verbly { std::string prerhyme_; int syllables_ = 0; std::string stress_; + int anaphone_set_id_; + int reverse_id_ = -1; }; -- cgit 1.4.1