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

Method clickedOnItem

code/main/SecondHouse.ts:89–99  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

87 }
88
89 private clickedOnItem(index: number): void{
90 // Set the currently selected item index
91 this.selectedItemIndex = index;
92
93 // We shouldn't draw the intro speech anymore
94 this.shouldDrawIntroSpeech = false;
95
96 // Update
97 this.update();
98 this.getGame().updatePlace();
99 }
100
101 private drawIntroSpeech(): void{
102 this.drawSpeech("secondHouseIntroSpeech");

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
updatePlaceMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected