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

Method addWalls

code/main/Yourself.ts:98–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 }
97
98 private addWalls(): void{
99 // Create the wall entity
100 this.addEntity(new Wall(this, new Pos(0, 0)));
101 var wall: Wall = <Wall>(this.getLastEntity());
102
103 // Add the boxes
104 wall.addBox(new Pos(-1, -1), new Pos(102, 1));
105 wall.addBox(new Pos(-1, 0), new Pos(1, 21));
106 wall.addBox(new Pos(0, 20), new Pos(101, 1));
107 wall.addBox(new Pos(101, 0), new Pos(1, 20));
108 }
109
110 private drawSentences(): void{
111 // Call the sentences update methods

Callers 1

constructorMethod · 0.95

Calls 3

addEntityMethod · 0.80
getLastEntityMethod · 0.80
addBoxMethod · 0.80

Tested by

no test coverage detected