(character: string = " ")
| 417 | } |
| 418 | |
| 419 | public eraseEverything(character: string = " "): boolean{ |
| 420 | var str: string; |
| 421 | |
| 422 | // We check if the character is correct, return false if it isn't |
| 423 | if(character.length != 1) |
| 424 | return false; |
| 425 | |
| 426 | // We prepare the string |
| 427 | str = ""; |
| 428 | str = str.fillWith(character, this.width); |
| 429 | |
| 430 | // We fill all the lines with the character given in parameter |
| 431 | for(var i = 0; i < this.height; i++){ |
| 432 | this.drawString(str, 0, i); |
| 433 | } |
| 434 | |
| 435 | // We return true |
| 436 | return true; |
| 437 | } |
| 438 | |
| 439 | public removeAllLinks(): void{ |
| 440 | this.links = []; |
no test coverage detected