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

Method draw

code/main/BigShark.ts:50–68  ·  view source on GitHub ↗
(renderArea: RenderArea)

Source from the content-addressed store, hash-verified

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{

Callers

nothing calls this directly

Calls 1

drawFinColorMethod · 0.95

Tested by

no test coverage detected