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

Method clickedEatCandiesButton

code/main/CandyBox.ts:167–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 }
166
167 private clickedEatCandiesButton(): void{
168 if(this.getGame().getCandies().getCurrent() >= 1){
169 this.getGame().getCandies().transferTo(this.getGame().getCandiesEaten());
170 this.update();
171 this.getGame().updatePlace();
172 }
173 }
174
175 private clickedThrowCandiesButton(): void{
176 if(this.getGame().getCandies().getCurrent() >= 10){

Callers

nothing calls this directly

Calls 7

updateMethod · 0.95
getCurrentMethod · 0.80
transferToMethod · 0.80
getCandiesEatenMethod · 0.80
updatePlaceMethod · 0.80
getCandiesMethod · 0.45
getGameMethod · 0.45

Tested by

no test coverage detected