(renderArea: RenderArea)
| 48 | |
| 49 | // draw() |
| 50 | public draw(renderArea: RenderArea): void{ |
| 51 | // Mother class draw method |
| 52 | super.draw(renderArea); |
| 53 | |
| 54 | // Add the fin color if we have a special fin type |
| 55 | if(this.finType != null){ |
| 56 | switch(this.finType){ |
| 57 | case BigSharkFinType.RED: |
| 58 | this.drawFinColor(renderArea, ColorType.BIGSHARK_FIN_RED); |
| 59 | break; |
| 60 | case BigSharkFinType.GREEN: |
| 61 | this.drawFinColor(renderArea, ColorType.BIGSHARK_FIN_GREEN); |
| 62 | break; |
| 63 | case BigSharkFinType.PURPLE: |
| 64 | this.drawFinColor(renderArea, ColorType.BIGSHARK_FIN_PURPLE); |
| 65 | break; |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | // willDie() |
| 71 | public willDie(): void{ |
nothing calls this directly
no test coverage detected