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

Method beginTurtle

code/main/Player.ts:38–49  ·  view source on GitHub ↗
(duration: number)

Source from the content-addressed store, hash-verified

36 }
37
38 public beginTurtle(duration: number): boolean{
39 // Call the mother class method
40 if(super.beginTurtle(duration)){
41 // Update the render area
42 this.drawOnRenderArea();
43 // Return true
44 return true;
45 }
46
47 // We didn't become a turtle : return false
48 return false;
49 }
50
51 public canJumpInMidAir(): boolean{
52 // If we have the rocket boots, we can!

Callers 2

castPlayerPPotionMethod · 0.45

Calls 1

drawOnRenderAreaMethod · 0.95

Tested by

no test coverage detected