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

Method reDraw

code/main/Devil.ts:158–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156 }
157
158 private reDraw(): void{
159 // Reset everything
160 this.getRenderArea().resetAllButSize();
161
162 // Draw the ascii art
163 this.getRenderArea().drawArray(Database.getAscii("places/quests/hell/devil"), 4, 0);
164
165 // Draw the flames
166 for(var i = 0; i < this.flames.length; i++){
167 this.flames[i].draw(this.getRenderArea(), 0, 0);
168 }
169 }
170
171 private setGoingDown(goingDown: boolean): void{
172 this.goingDown = goingDown;

Callers 2

constructorMethod · 0.95
updateMethod · 0.95

Calls 5

resetAllButSizeMethod · 0.80
drawArrayMethod · 0.80
getAsciiMethod · 0.80
getRenderAreaMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected