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

Method constructor

code/main/CastleRoom2.ts:13–23  ·  view source on GitHub ↗
(game: Game)

Source from the content-addressed store, hash-verified

11 private smokes: Smoke[] = [];
12
13 constructor(game: Game){
14 super(game);
15
16 // If needed, we add smokes
17 if(Saving.loadBool("castleRoom2LitFire") == true){
18 this.addSmokes();
19 }
20
21 this.renderArea.resize(100, 30);
22 this.update();
23 }
24
25 // getRenderArea()
26 public getRenderArea(): RenderArea{

Callers

nothing calls this directly

Calls 3

addSmokesMethod · 0.95
updateMethod · 0.95
resizeMethod · 0.65

Tested by

no test coverage detected