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

Method willBeDisplayed

code/main/LollipopFarm.ts:65–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63
64 // Public methods
65 public willBeDisplayed(): void{
66 // We check lollipops
67 this.checkLollipops();
68
69 // We add the lollipops callback
70 this.getGame().getLollipops().getCallbackCollection().addCallback(this.checkLollipops.bind(this));
71
72 // We add the one second callback for the pond
73 this.getGame().getOneSecondCallbackCollection().addCallback(this.handlePond.bind(this));
74 }
75
76 // getRenderArea()
77 public getRenderArea(): RenderArea{

Callers

nothing calls this directly

Calls 7

checkLollipopsMethod · 0.95
addCallbackMethod · 0.80
bindMethod · 0.80
getCallbackCollectionMethod · 0.45
getLollipopsMethod · 0.45
getGameMethod · 0.45

Tested by

no test coverage detected