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

Method draw

code/main/LighthousePuzzle.ts:12–19  ·  view source on GitHub ↗
(renderArea: RenderArea, pos: Pos)

Source from the content-addressed store, hash-verified

10
11 // Public methods
12 public draw(renderArea: RenderArea, pos: Pos): void{
13 for(var i = 0; i < 7; i++){
14 for(var j = 4; j >= 0; j--){
15 if(this.parts[i][j] != null)
16 this.parts[i][j].draw(renderArea, pos.plus(new Pos(i*7, j*4)));
17 }
18 }
19 }
20
21 // Public getters
22 public getParts(): LighthousePuzzlePart[][]{

Callers

nothing calls this directly

Calls 1

plusMethod · 0.80

Tested by

no test coverage detected