Antura  1.1.0
Antura.Database.VocabularyHelper Class Reference

Provides helpers to get correct letter/word/phrase data according to the teacher's logic and based on the player's progression More...

Public Member Functions

 VocabularyHelper (DatabaseManager _dbManager)
 
Vector2 FindDiacriticCombo2Fix (string Unicode1, string Unicode2)
 
bool FixDiacriticPositions (TMPro.TMP_TextInfo textInfo)
 Adjusts the diacritic positions. More...
 
List< LetterDataGetAllBaseLetters ()
 
List< LetterDataGetAllLetters (LetterFilters filters)
 
List< LetterDataGetLettersNotIn (LetterFilters filters, params LetterData[] tabooArray)
 
List< LetterDataGetLettersByKind (LetterDataKind choice)
 
List< LetterDataGetLettersBySunMoon (LetterDataSunMoon choice, LetterFilters filters)
 
List< LetterDataGetConsonantLetter (LetterFilters filters)
 
List< LetterDataGetVowelLetter (LetterFilters filters)
 
List< LetterDataGetLettersByType (LetterDataType choice, LetterFilters filters)
 
LetterData GetBaseOf (string letterId)
 
LetterData GetSymbolOf (string letterId)
 
List< LetterDataGetLettersWithBase (string letterId)
 
List< LetterDataGetLettersInWord (WordData wordData)
 
List< LetterDataGetLettersInWord (string wordId)
 
List< LetterDataGetLettersNotInWords (params WordData[] tabooArray)
 
List< LetterDataGetLettersNotInWords (LetterKindCategory category=LetterKindCategory.Real, params WordData[] tabooArray)
 
List< LetterDataGetLettersNotInWord (string wordId, LetterKindCategory category=LetterKindCategory.Real)
 
List< LetterDataGetCommonLettersInWords (params WordData[] words)
 
string GetWordDrawing (WordData word)
 tranformsf the hex string of the glyph into the corresponding char More...
 
List< WordDataGetAllWords (WordFilters filters)
 
List< WordDataGetWordsNotIn (WordFilters filters, params WordData[] tabooArray)
 
List< WordDataGetWordsByCategory (WordDataCategory choice, WordFilters filters)
 
List< WordDataGetWordsByArticle (WordDataArticle choice, WordFilters filters)
 
List< WordDataGetWordsByForm (WordDataForm choice, WordFilters filters)
 
List< WordDataGetWordsByKind (WordDataKind choice, WordFilters filters)
 
List< WordDataGetWordsWithLetter (WordFilters filters, string okLetter)
 
List< WordDataGetWordsWithLetters (WordFilters filters, params string[] okLetters)
 
List< WordDataGetWordsWithoutLetter (WordFilters filters, string tabooLetter)
 
List< WordDataGetWordsWithoutLetters (WordFilters filters, params string[] tabooLetters)
 
List< WordDataGetWordsByLetters (WordFilters filters, string[] okLettersArray, string[] tabooLettersArray)
 
bool WordContainsAnyLetter (WordData word, List< string > letter_ids)
 
bool WordHasAllLettersInCommonWith (WordData word, List< string > word_ids)
 
bool LetterContainedInAnyWord (LetterData letter, List< string > word_ids)
 
bool AnyWordContainsLetter (LetterData letter, List< string > word_ids)
 
List< WordDataGetWordsInPhrase (string phraseId, WordFilters wordFilters=null)
 Gets the words in phrase, taken from field Words of data Pharse. these words are set manually in the db More...
 
List< WordDataGetWordsInPhrase (PhraseData phraseData, WordFilters wordFilters)
 
List< WordDataGetAnswersToPhrase (PhraseData phraseData, WordFilters wordFilters)
 
List< PhraseDataGetAllPhrases (WordFilters wordFilters, PhraseFilters phraseFilters)
 
List< PhraseDataGetPhrasesByCategory (PhraseDataCategory choice, WordFilters wordFilters, PhraseFilters phraseFilters)
 
List< PhraseDataGetPhrasesNotIn (WordFilters wordFilters, PhraseFilters phraseFilters, params PhraseData[] tabooArray)
 
PhraseData GetLinkedPhraseOf (string startPhraseId)
 
PhraseData GetLinkedPhraseOf (PhraseData data)
 
List< PhraseDataGetPhrasesWithWords (params string[] okWordsArray)
 

Public Attributes

List< string > ProblematicWordIds
 
Dictionary< DiacriticComboEntry, Vector2 > DiacriticCombos2Fix = new Dictionary<DiacriticComboEntry, Vector2>()
 

Properties

bool ForceUnseparatedLetters [get, set]
 

Detailed Description

Provides helpers to get correct letter/word/phrase data according to the teacher's logic and based on the player's progression

Constructor & Destructor Documentation

◆ VocabularyHelper()

Antura.Database.VocabularyHelper.VocabularyHelper ( DatabaseManager  _dbManager)

Member Function Documentation

◆ AnyWordContainsLetter()

bool Antura.Database.VocabularyHelper.AnyWordContainsLetter ( LetterData  letter,
List< string >  word_ids 
)

◆ FindDiacriticCombo2Fix()

Vector2 Antura.Database.VocabularyHelper.FindDiacriticCombo2Fix ( string  Unicode1,
string  Unicode2 
)

◆ FixDiacriticPositions()

bool Antura.Database.VocabularyHelper.FixDiacriticPositions ( TMPro.TMP_TextInfo  textInfo)

Adjusts the diacritic positions.

Returns
true, if diacritic positions was adjusted, false otherwise.
Parameters
textInfoText info.

◆ GetAllBaseLetters()

List<LetterData> Antura.Database.VocabularyHelper.GetAllBaseLetters ( )

◆ GetAllLetters()

List<LetterData> Antura.Database.VocabularyHelper.GetAllLetters ( LetterFilters  filters)

◆ GetAllPhrases()

List<PhraseData> Antura.Database.VocabularyHelper.GetAllPhrases ( WordFilters  wordFilters,
PhraseFilters  phraseFilters 
)

◆ GetAllWords()

List<WordData> Antura.Database.VocabularyHelper.GetAllWords ( WordFilters  filters)

◆ GetAnswersToPhrase()

List<WordData> Antura.Database.VocabularyHelper.GetAnswersToPhrase ( PhraseData  phraseData,
WordFilters  wordFilters 
)

◆ GetBaseOf()

LetterData Antura.Database.VocabularyHelper.GetBaseOf ( string  letterId)

◆ GetCommonLettersInWords()

List<LetterData> Antura.Database.VocabularyHelper.GetCommonLettersInWords ( params WordData []  words)

◆ GetConsonantLetter()

List<LetterData> Antura.Database.VocabularyHelper.GetConsonantLetter ( LetterFilters  filters)

◆ GetLettersByKind()

List<LetterData> Antura.Database.VocabularyHelper.GetLettersByKind ( LetterDataKind  choice)

◆ GetLettersBySunMoon()

List<LetterData> Antura.Database.VocabularyHelper.GetLettersBySunMoon ( LetterDataSunMoon  choice,
LetterFilters  filters 
)

◆ GetLettersByType()

List<LetterData> Antura.Database.VocabularyHelper.GetLettersByType ( LetterDataType  choice,
LetterFilters  filters 
)

◆ GetLettersInWord() [1/2]

List<LetterData> Antura.Database.VocabularyHelper.GetLettersInWord ( WordData  wordData)

◆ GetLettersInWord() [2/2]

List<LetterData> Antura.Database.VocabularyHelper.GetLettersInWord ( string  wordId)

◆ GetLettersNotIn()

List<LetterData> Antura.Database.VocabularyHelper.GetLettersNotIn ( LetterFilters  filters,
params LetterData []  tabooArray 
)

◆ GetLettersNotInWord()

List<LetterData> Antura.Database.VocabularyHelper.GetLettersNotInWord ( string  wordId,
LetterKindCategory  category = LetterKindCategory.Real 
)

◆ GetLettersNotInWords() [1/2]

List<LetterData> Antura.Database.VocabularyHelper.GetLettersNotInWords ( params WordData []  tabooArray)

◆ GetLettersNotInWords() [2/2]

List<LetterData> Antura.Database.VocabularyHelper.GetLettersNotInWords ( LetterKindCategory  category = LetterKindCategory.Real,
params WordData []  tabooArray 
)

◆ GetLettersWithBase()

List<LetterData> Antura.Database.VocabularyHelper.GetLettersWithBase ( string  letterId)

◆ GetLinkedPhraseOf() [1/2]

PhraseData Antura.Database.VocabularyHelper.GetLinkedPhraseOf ( string  startPhraseId)

◆ GetLinkedPhraseOf() [2/2]

PhraseData Antura.Database.VocabularyHelper.GetLinkedPhraseOf ( PhraseData  data)

◆ GetPhrasesByCategory()

List<PhraseData> Antura.Database.VocabularyHelper.GetPhrasesByCategory ( PhraseDataCategory  choice,
WordFilters  wordFilters,
PhraseFilters  phraseFilters 
)

◆ GetPhrasesNotIn()

List<PhraseData> Antura.Database.VocabularyHelper.GetPhrasesNotIn ( WordFilters  wordFilters,
PhraseFilters  phraseFilters,
params PhraseData []  tabooArray 
)

◆ GetPhrasesWithWords()

List<PhraseData> Antura.Database.VocabularyHelper.GetPhrasesWithWords ( params string []  okWordsArray)

◆ GetSymbolOf()

LetterData Antura.Database.VocabularyHelper.GetSymbolOf ( string  letterId)

◆ GetVowelLetter()

List<LetterData> Antura.Database.VocabularyHelper.GetVowelLetter ( LetterFilters  filters)

◆ GetWordDrawing()

string Antura.Database.VocabularyHelper.GetWordDrawing ( WordData  word)

tranformsf the hex string of the glyph into the corresponding char

Returns
The drawing string
Parameters
wordWordData.

◆ GetWordsByArticle()

List<WordData> Antura.Database.VocabularyHelper.GetWordsByArticle ( WordDataArticle  choice,
WordFilters  filters 
)

◆ GetWordsByCategory()

List<WordData> Antura.Database.VocabularyHelper.GetWordsByCategory ( WordDataCategory  choice,
WordFilters  filters 
)

◆ GetWordsByForm()

List<WordData> Antura.Database.VocabularyHelper.GetWordsByForm ( WordDataForm  choice,
WordFilters  filters 
)

◆ GetWordsByKind()

List<WordData> Antura.Database.VocabularyHelper.GetWordsByKind ( WordDataKind  choice,
WordFilters  filters 
)

◆ GetWordsByLetters()

List<WordData> Antura.Database.VocabularyHelper.GetWordsByLetters ( WordFilters  filters,
string []  okLettersArray,
string []  tabooLettersArray 
)

◆ GetWordsInPhrase() [1/2]

List<WordData> Antura.Database.VocabularyHelper.GetWordsInPhrase ( string  phraseId,
WordFilters  wordFilters = null 
)

Gets the words in phrase, taken from field Words of data Pharse. these words are set manually in the db

Returns
The words in phrase.
Parameters
phraseIdPhrase identifier.
wordFiltersWord filters.

◆ GetWordsInPhrase() [2/2]

List<WordData> Antura.Database.VocabularyHelper.GetWordsInPhrase ( PhraseData  phraseData,
WordFilters  wordFilters 
)

◆ GetWordsNotIn()

List<WordData> Antura.Database.VocabularyHelper.GetWordsNotIn ( WordFilters  filters,
params WordData []  tabooArray 
)

◆ GetWordsWithLetter()

List<WordData> Antura.Database.VocabularyHelper.GetWordsWithLetter ( WordFilters  filters,
string  okLetter 
)

◆ GetWordsWithLetters()

List<WordData> Antura.Database.VocabularyHelper.GetWordsWithLetters ( WordFilters  filters,
params string []  okLetters 
)

◆ GetWordsWithoutLetter()

List<WordData> Antura.Database.VocabularyHelper.GetWordsWithoutLetter ( WordFilters  filters,
string  tabooLetter 
)

◆ GetWordsWithoutLetters()

List<WordData> Antura.Database.VocabularyHelper.GetWordsWithoutLetters ( WordFilters  filters,
params string []  tabooLetters 
)

◆ LetterContainedInAnyWord()

bool Antura.Database.VocabularyHelper.LetterContainedInAnyWord ( LetterData  letter,
List< string >  word_ids 
)

◆ WordContainsAnyLetter()

bool Antura.Database.VocabularyHelper.WordContainsAnyLetter ( WordData  word,
List< string >  letter_ids 
)

◆ WordHasAllLettersInCommonWith()

bool Antura.Database.VocabularyHelper.WordHasAllLettersInCommonWith ( WordData  word,
List< string >  word_ids 
)

Member Data Documentation

◆ DiacriticCombos2Fix

Dictionary<DiacriticComboEntry, Vector2> Antura.Database.VocabularyHelper.DiacriticCombos2Fix = new Dictionary<DiacriticComboEntry, Vector2>()

◆ ProblematicWordIds

List<string> Antura.Database.VocabularyHelper.ProblematicWordIds
Initial value:
= new List<string>()
{
"won",
"went",
"sat",
"studied",
"laughed",
"played",
"flapped",
"caught",
"released",
"carried",
"understood"
}

Property Documentation

◆ ForceUnseparatedLetters

bool Antura.Database.VocabularyHelper.ForceUnseparatedLetters
getset

The documentation for this class was generated from the following file: