public static IAssessment CreateMatchLettersWordAssessment() { Init(); AssessmentConfiguration.Instance.PronunceQuestionWhenClicked = true; AssessmentConfiguration.Instance.PronunceAnswerWhenClicked = true; IAnswerChecker checker = new DefaultAnswerChecker(context.GetCheckmarkWidget(), audioManager, dialogueManager); IDragManager dragManager = new DefaultDragManager(audioManager, checker); IQuestionDecorator questionDecorator = new PronunceQuestionDecorator(); IQuestionGenerator generator = new DefaultQuestionGenerator(configuration.Questions); ILogicInjector injector = new DefaultLogicInjector(dragManager, questionDecorator); IQuestionPlacer questionplacer = new DefaultQuestionPlacer(audioManager, wordSize, letterSize); IAnswerPlacer answerPlacer = new DefaultAnswerPlacer(audioManager); gameDescription = Db.LocalizationDataId.Assessment_Match_Letters_Words; return(new DefaultAssessment(answerPlacer, questionplacer, generator, injector, configuration, context, dialogueManager, gameDescription)); }
public static IAssessment CreateSunMoonLetterAssessment() { Init(); AssessmentConfiguration.Instance.PronunceQuestionWhenClicked = true; AssessmentConfiguration.Instance.PronunceAnswerWhenClicked = true; IAnswerChecker checker = new DefaultAnswerChecker(context.GetCheckmarkWidget(), audioManager, dialogueManager); IDragManager dragManager = new DefaultDragManager(audioManager, checker); IQuestionDecorator questionDecorator = new PronunceQuestionDecorator(); ICategoryProvider categoryProvider = new CategoryProvider(CategoryType.SunMoon); IQuestionGenerator generator = new CategoryQuestionGenerator(configuration.Questions, categoryProvider, maxAnswers, rounds); ILogicInjector injector = new DefaultLogicInjector(dragManager, questionDecorator); IQuestionPlacer questionplacer = new CategoryQuestionPlacer(audioManager, letterSize, letterSize); IAnswerPlacer answerPlacer = new DefaultAnswerPlacer(audioManager); gameDescription = Db.LocalizationDataId.Assessment_Classify_Letters_Article; return(new DefaultAssessment(answerPlacer, questionplacer, generator, injector, configuration, context, dialogueManager, gameDescription)); }