()
| 56 | |
| 57 | // update() |
| 58 | public update(): void{ |
| 59 | // Handle movement |
| 60 | this.handleUpDownMovement(); |
| 61 | |
| 62 | // Handle fireballs |
| 63 | this.handleFireballs(); |
| 64 | |
| 65 | // Handle the flames |
| 66 | this.handleFlames(); |
| 67 | |
| 68 | // Re draw the devil (ascii art + flames) |
| 69 | this.reDraw(); |
| 70 | |
| 71 | // Call the mother class update method |
| 72 | super.update(); |
| 73 | } |
| 74 | |
| 75 | // willDie() |
| 76 | public willDie(): void{ |
nothing calls this directly
no test coverage detected