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/pronunciation.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/pronunciation.h')
-rw-r--r-- | generator/pronunciation.h | 19 |
1 files changed, 18 insertions, 1 deletions
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 { | |||
13 | 13 | ||
14 | // Constructor | 14 | // Constructor |
15 | 15 | ||
16 | explicit pronunciation(std::string phonemes); | 16 | pronunciation(std::string phonemes, int anaphone_set_id); |
17 | 17 | ||
18 | // Accessors | 18 | // Accessors |
19 | 19 | ||
@@ -62,6 +62,21 @@ namespace verbly { | |||
62 | return stress_; | 62 | return stress_; |
63 | } | 63 | } |
64 | 64 | ||
65 | int getAnaphoneSetId() const | ||
66 | { | ||
67 | return anaphone_set_id_; | ||
68 | } | ||
69 | |||
70 | void setReverseId(int id) | ||
71 | { | ||
72 | reverse_id_ = id; | ||
73 | } | ||
74 | |||
75 | int getReverseId() const | ||
76 | { | ||
77 | return reverse_id_; | ||
78 | } | ||
79 | |||
65 | private: | 80 | private: |
66 | 81 | ||
67 | static int nextId_; | 82 | static int nextId_; |
@@ -72,6 +87,8 @@ namespace verbly { | |||
72 | std::string prerhyme_; | 87 | std::string prerhyme_; |
73 | int syllables_ = 0; | 88 | int syllables_ = 0; |
74 | std::string stress_; | 89 | std::string stress_; |
90 | int anaphone_set_id_; | ||
91 | int reverse_id_ = -1; | ||
75 | 92 | ||
76 | }; | 93 | }; |
77 | 94 | ||