Merge branch 'master' of https://gitlab.dcs.aber.ac.uk/ncw/gp20
This commit is contained in:
commit
52692f6b78
1 changed files with 3 additions and 1 deletions
|
@ -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++;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue