Exemplo n.º 1
0
        public DefaultQuestionPlacer(AssessmentEvents events,
                                     AssessmentAudioManager audioManager, QuestionPlacerOptions options)
        {
            this.events       = events;
            this.audioManager = audioManager;
            this.options      = options;

            if (events != null)
            {
                this.events.OnAllQuestionsAnsweredPlacer = ColorImageByGreen;
            }
        }
Exemplo n.º 2
0
        public ImageQuestionGenerator(IQuestionProvider provider, bool missingLetter,
                                      AssessmentAudioManager audioManager,
                                      AssessmentEvents events)
        {
            this.provider      = provider;
            this.missingLetter = missingLetter;
            this.audioManager  = audioManager;

            if (AssessmentOptions.Instance.CompleteWordOnAnswered)
            {
                events.OnAllQuestionsAnswered = CompleteWordCoroutine;
            }

            if (AssessmentOptions.Instance.ShowFullWordOnAnswered)
            {
                events.OnAllQuestionsAnswered = ShowFullWordCoroutine;
            }

            state = QuestionGeneratorState.Uninitialized;
            ClearCache();
        }
Exemplo n.º 3
0
        // ##################################
        //             INIT
        // ##################################

        public DefaultQuestionGenerator(IQuestionProvider provider,
                                        AssessmentAudioManager dialogues,
                                        AssessmentEvents events,
                                        DefaultQuestionType config)
        {
            this.provider  = provider;
            this.dialogues = dialogues;
            this.config    = config;

            if (config == DefaultQuestionType.MissingForm)
            {
                events.OnAllQuestionsAnswered = CompleteWordsWithForm;
            }
            if (config == DefaultQuestionType.WordsWithLetter)
            {
                events.OnPreQuestionsAnswered = ShowGreenLetterInWord;
            }
            if (AssessmentOptions.Instance.ReadQuestionAndAnswer)
            {
                events.OnAllQuestionsAnswered = ReadQuestionAndReplyEvent;
            }
            state = QuestionGeneratorState.Uninitialized;
            ClearCache();
        }
Exemplo n.º 4
0
 public DefaultQuestionGenerator(IQuestionProvider provider,
                                 AssessmentAudioManager dialogues,
                                 AssessmentEvents events)
     : this(provider, dialogues, events, DefaultQuestionType.Default)
 {
 }
Exemplo n.º 5
0
 public DefaultLogicInjector(IDragManager dragManager, AssessmentEvents events)
 {
     this.dragManager = dragManager;
     this.events      = events;
     ResetRound();
 }
Exemplo n.º 6
0
 public AnswerChecker(AssessmentAudioManager audioManager, AssessmentEvents events = null)
 {
     this.audioManager = audioManager;
     this.events       = events;
 }
Exemplo n.º 7
0
 public SortingLogicInjector(IDragManager dragManager, AssessmentEvents events) : base(dragManager, events)
 {
 }