Little design fixes
This commit is contained in:
@@ -206,6 +206,13 @@
|
||||
goBack(): void {
|
||||
this.sendWall();
|
||||
this.state = GameState.CHOOSING_QUESTION;
|
||||
this.setupGoingBack();
|
||||
}
|
||||
|
||||
setupGoingBack(): void {
|
||||
this.answerIsShowing = false;
|
||||
this.questionIsShowing = false;
|
||||
this.pointsGivenForCurrentQuestion = false;
|
||||
}
|
||||
|
||||
finishQuestion(): void {
|
||||
@@ -216,9 +223,7 @@
|
||||
) {
|
||||
this.visitedQuestions[this.currentCategory].push(this.currentQuestion);
|
||||
}
|
||||
this.pointsGivenForCurrentQuestion = false;
|
||||
this.answerIsShowing = false;
|
||||
this.questionIsShowing = false;
|
||||
this.setupGoingBack();
|
||||
this.nextPlayer();
|
||||
if (this.wallIsDone()) {
|
||||
this.goToNextWall();
|
||||
|
||||
Reference in New Issue
Block a user