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

Method update

code/main/Castle.ts:166–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 }
165
166 private update(): void{
167 // Erase everything
168 this.renderArea.resetAllButSize();
169
170 // Back to the map button
171 this.addBackToMainMapButton(this.renderArea, "castleBackToTheMapButton");
172
173 // Draw the ascii
174 this.renderArea.drawArray(Database.getAscii("places/castle/map"), 0, 3);
175
176 // Draw various stuff
177 this.drawCastleEntrance(43, 36);
178 this.drawBigRoom(57, 19);
179 this.drawRoom1(15, 27);
180 this.drawRoom2(15, 21);
181 this.drawRoom3(15, 15);
182 this.drawNougatMonster(68, 15);
183 this.drawStairs(32, 3);
184 if(Saving.loadBool("castleKilledNougatMonster")){
185 this.drawTowerEntrance(84, 16);
186 }
187 }
188}

Callers 1

constructorMethod · 0.95

Calls 12

drawCastleEntranceMethod · 0.95
drawBigRoomMethod · 0.95
drawRoom1Method · 0.95
drawRoom2Method · 0.95
drawRoom3Method · 0.95
drawNougatMonsterMethod · 0.95
drawStairsMethod · 0.95
drawTowerEntranceMethod · 0.95
resetAllButSizeMethod · 0.80
drawArrayMethod · 0.80
getAsciiMethod · 0.80

Tested by

no test coverage detected