This commit is contained in:
top19 2020-04-29 13:50:48 +01:00
commit 52692f6b78

View file

@ -67,6 +67,7 @@ public class AssessmentGenerator {
listOfAssessment.add(generatedAssessment); listOfAssessment.add(generatedAssessment);
} }
AssessmentGenerator.listOfAssessment = listOfAssessment; AssessmentGenerator.listOfAssessment = listOfAssessment;
goToNextQuestion();
return listOfAssessment; return listOfAssessment;
} }
@ -130,7 +131,7 @@ public class AssessmentGenerator {
Question currentQuestion = listOfAssessment.get(currentAssessment); Question currentQuestion = listOfAssessment.get(currentAssessment);
if(currentQuestion instanceof MatchTheMeaningQuestion){ if(currentQuestion instanceof MatchTheMeaningQuestion){
MatchTheMeaningController.answer = (ArrayList<DictionaryEntry>) Arrays.asList(((MatchTheMeaningQuestion) currentQuestion).getCorrectAnswer()); MatchTheMeaningController.answer = ((MatchTheMeaningQuestion) currentQuestion).getCorrectAnswer();
ScreenSwitch.swap(ScreenSwitch.SceneEnum.matchMeaningScene); ScreenSwitch.swap(ScreenSwitch.SceneEnum.matchMeaningScene);
}else if (currentQuestion instanceof SixMeaningsQuestion){ }else if (currentQuestion instanceof SixMeaningsQuestion){
SixMeaningsController.allQuestions = ((SixMeaningsQuestion) currentQuestion).getCorrectAnswer(); SixMeaningsController.allQuestions = ((SixMeaningsQuestion) currentQuestion).getCorrectAnswer();
@ -143,6 +144,7 @@ public class AssessmentGenerator {
System.err.println(currentQuestion); System.err.println(currentQuestion);
} }
currentAssessment++;
} }