(duration: number)
| 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! |
no test coverage detected