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

Method drawCauldron

code/main/Cauldron.ts:249–257  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

247 }
248
249 private drawCauldron(x: number, y: number): void{
250 // Draw the cauldron
251 this.renderArea.drawArray(Database.getAscii("places/cauldron/cauldron"), x, y);
252
253 // Draw the flames
254 for(var i = 0; i < this.flames.length; i++){
255 this.flames[i].draw(this.renderArea, x, y);
256 }
257 }
258
259 private getSpecialBoilingText(): string{
260 if(this.timerTime < 3) return "... cold.";

Callers 1

updateMethod · 0.95

Calls 3

drawArrayMethod · 0.80
getAsciiMethod · 0.80
drawMethod · 0.45

Tested by

no test coverage detected