Antura  1.1.0
Antura.Teacher.TeacherAI Class Reference

Handles logic that represent the Teacher's expert system: More...

Public Member Functions

 TeacherAI (DatabaseManager _dbManager, VocabularyHelper _vocabularyHelper, JourneyHelper _journeyHelper, ScoreHelper _scoreHelper)
 
void SetPlayerProfile (Profile.PlayerProfile _playerProfile)
 
void InitNewPlaySession ()
 
List< MiniGameDataSelectMiniGames ()
 
List< MiniGameDataSelectMiniGamesForPlaySession (string playSessionId, int numberToSelect)
 
bool CanMiniGameBePlayedAtPlaySession (JourneyPosition journeyPos, MiniGameCode code)
 Can the given minigame be played at the given play session? Strong check: it must be the actual play session More...
 
bool CanMiniGameBePlayedAtPlaySession (PlaySessionData psData, MiniGameCode code)
 
bool CanMiniGameBePlayedAfterMinPlaySession (JourneyPosition jp, MiniGameCode code)
 Can minigame be played at the given play session? Weak check: it just requires that the minimum has been reached. More...
 
bool CanMiniGameBePlayedAtAnyPlaySession (MiniGameCode code)
 Can minigame be played at ANY play session at all? More...
 
float GetCurrentDifficulty (MiniGameCode miniGameCode)
 
int GetCurrentNumberOfRounds (MiniGameCode miniGameCode)
 
bool GetTutorialEnabled (MiniGameCode miniGameCode)
 
float GetLearningBlockScore (LearningBlockData lb)
 
List< LetterDataGetFailedAssessmentLetters (MiniGameCode assessmentCode)
 
List< WordDataGetFailedAssessmentWords (MiniGameCode assessmentCode)
 
List< LogPlayDataGetScoreHistoryForCurrentJourneyPosition ()
 
List< LogMoodDataGetLastMoodData (int number)
 
List< LL_LetterDataGetAllTestLetterDataLL (LetterFilters filters=null, bool useMaxJourneyData=false)
 
LL_LetterData GetRandomTestLetterLL (LetterFilters filters=null, bool useMaxJourneyData=false)
 
LL_WordData GetRandomTestWordDataLL (WordFilters filters=null, bool useMaxJourneyData=false)
 

Public Attributes

LogAI logAI
 
VocabularySelectionAI VocabularyAi
 

Static Public Attributes

static TeacherAI I
 

Detailed Description

Handles logic that represent the Teacher's expert system:

  • selects minigames according to a given progression flow
  • selects question packs according to the given profression flow
  • selects minigame difficulty according to the player's status

Constructor & Destructor Documentation

◆ TeacherAI()

Antura.Teacher.TeacherAI.TeacherAI ( DatabaseManager  _dbManager,
VocabularyHelper  _vocabularyHelper,
JourneyHelper  _journeyHelper,
ScoreHelper  _scoreHelper 
)

Member Function Documentation

◆ CanMiniGameBePlayedAfterMinPlaySession()

bool Antura.Teacher.TeacherAI.CanMiniGameBePlayedAfterMinPlaySession ( JourneyPosition  jp,
MiniGameCode  code 
)

Can minigame be played at the given play session? Weak check: it just requires that the minimum has been reached.

◆ CanMiniGameBePlayedAtAnyPlaySession()

bool Antura.Teacher.TeacherAI.CanMiniGameBePlayedAtAnyPlaySession ( MiniGameCode  code)

Can minigame be played at ANY play session at all?

◆ CanMiniGameBePlayedAtPlaySession() [1/2]

bool Antura.Teacher.TeacherAI.CanMiniGameBePlayedAtPlaySession ( JourneyPosition  journeyPos,
MiniGameCode  code 
)

Can the given minigame be played at the given play session? Strong check: it must be the actual play session

◆ CanMiniGameBePlayedAtPlaySession() [2/2]

bool Antura.Teacher.TeacherAI.CanMiniGameBePlayedAtPlaySession ( PlaySessionData  psData,
MiniGameCode  code 
)

◆ GetAllTestLetterDataLL()

List<LL_LetterData> Antura.Teacher.TeacherAI.GetAllTestLetterDataLL ( LetterFilters  filters = null,
bool  useMaxJourneyData = false 
)

◆ GetCurrentDifficulty()

float Antura.Teacher.TeacherAI.GetCurrentDifficulty ( MiniGameCode  miniGameCode)

◆ GetCurrentNumberOfRounds()

int Antura.Teacher.TeacherAI.GetCurrentNumberOfRounds ( MiniGameCode  miniGameCode)

◆ GetFailedAssessmentLetters()

List<LetterData> Antura.Teacher.TeacherAI.GetFailedAssessmentLetters ( MiniGameCode  assessmentCode)

◆ GetFailedAssessmentWords()

List<WordData> Antura.Teacher.TeacherAI.GetFailedAssessmentWords ( MiniGameCode  assessmentCode)

◆ GetLastMoodData()

List<LogMoodData> Antura.Teacher.TeacherAI.GetLastMoodData ( int  number)

◆ GetLearningBlockScore()

float Antura.Teacher.TeacherAI.GetLearningBlockScore ( LearningBlockData  lb)

◆ GetRandomTestLetterLL()

LL_LetterData Antura.Teacher.TeacherAI.GetRandomTestLetterLL ( LetterFilters  filters = null,
bool  useMaxJourneyData = false 
)

◆ GetRandomTestWordDataLL()

LL_WordData Antura.Teacher.TeacherAI.GetRandomTestWordDataLL ( WordFilters  filters = null,
bool  useMaxJourneyData = false 
)

◆ GetScoreHistoryForCurrentJourneyPosition()

List<LogPlayData> Antura.Teacher.TeacherAI.GetScoreHistoryForCurrentJourneyPosition ( )

◆ GetTutorialEnabled()

bool Antura.Teacher.TeacherAI.GetTutorialEnabled ( MiniGameCode  miniGameCode)

◆ InitNewPlaySession()

void Antura.Teacher.TeacherAI.InitNewPlaySession ( )

◆ SelectMiniGames()

List<MiniGameData> Antura.Teacher.TeacherAI.SelectMiniGames ( )

◆ SelectMiniGamesForPlaySession()

List<MiniGameData> Antura.Teacher.TeacherAI.SelectMiniGamesForPlaySession ( string  playSessionId,
int  numberToSelect 
)

◆ SetPlayerProfile()

void Antura.Teacher.TeacherAI.SetPlayerProfile ( Profile.PlayerProfile  _playerProfile)

Member Data Documentation

◆ I

TeacherAI Antura.Teacher.TeacherAI.I
static

◆ logAI

LogAI Antura.Teacher.TeacherAI.logAI

◆ VocabularyAi

VocabularySelectionAI Antura.Teacher.TeacherAI.VocabularyAi

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