MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / createQuestionsArray

Method createQuestionsArray

code/main/Lighthouse.ts:108–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 }
107
108 private createQuestionsArray(): void{
109 // We empty the array
110 this.questionsArray = [];
111
112 // Add the first basic questions
113 this.addQuestion("lighthouseQuestionWho", Database.getText("lighthouseQuestionWho"), Database.getTranslatedText("lighthouseQuestionWho"));
114 this.addQuestion("lighthouseQuestionWhat", Database.getText("lighthouseQuestionWhat"), Database.getTranslatedText("lighthouseQuestionWhat"));
115 this.addQuestion("lighthouseQuestionWhyEatCandies", Database.getText("lighthouseQuestionWhyEatCandies"), Database.getTranslatedText("lighthouseQuestionWhyEatCandies"));
116 this.addQuestion("lighthouseQuestionCandyBox", Database.getText("lighthouseQuestionCandyBox"), Database.getTranslatedText("lighthouseQuestionCandyBox"));
117
118 // Add the question about the dragon is we unlocked it
119 if(Saving.loadBool("dragonUnlockedCyclops")){
120 this.addQuestion("lighthouseQuestionDragon", Database.getText("lighthouseQuestionDragon"), Database.getTranslatedText("lighthouseQuestionDragon"));
121 }
122 }
123
124 private questionSelected(): void{
125 // Get the selected language id

Callers 1

constructorMethod · 0.95

Calls 2

addQuestionMethod · 0.95
getTextMethod · 0.45

Tested by

no test coverage detected