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

Method clickOnCarpet

code/main/FourthHouse.ts:24–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23 // Private methods
24 private clickOnCarpet(): void{
25 // If we never clicked on the carpet
26 if(Saving.loadNumber("fourthHouseCarpetStep") == 0){
27 // Set the step
28 Saving.saveNumber("fourthHouseCarpetStep", 1);
29 // Update
30 this.update();
31 this.getGame().updatePlace();
32 }
33 }
34
35 private drawCarpetStuff(x: number, y: number): void{
36 // We do different things depending on the step

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
updatePlaceMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected