Added goToNextQuestion to controllers.
This commit is contained in:
parent
aaf9e648a3
commit
d5b83532f2
2 changed files with 5 additions and 1 deletions
|
@ -153,7 +153,7 @@ public class SixMeaningsController implements Initializable {
|
|||
|
||||
answer.add(wordCounterpart);
|
||||
|
||||
checkAnswer(wordSet,answer,isEnglish);
|
||||
Question.checkAnswer(wordSet,answer,isEnglish);
|
||||
|
||||
correctAnswer.setText(Integer.toString(Question.correctAnswers));
|
||||
|
||||
|
@ -161,6 +161,8 @@ public class SixMeaningsController implements Initializable {
|
|||
|
||||
wordSet.clear();
|
||||
|
||||
AssessmentGenerator.goToNextQuestion();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -90,6 +90,8 @@ public class TranslationController {
|
|||
|
||||
Question.checkAnswer(correctTranslation, usersInput, AssessmentGenerator.isEnglish);
|
||||
|
||||
AssessmentGenerator.goToNextQuestion();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue