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

Method constructor

code/main/Cauldron.ts:37–46  ·  view source on GitHub ↗
(game: Game)

Source from the content-addressed store, hash-verified

35
36 // Constructor
37 constructor(game: Game){
38 super(game);
39
40 // Launch the interval and get the ID
41 this.timerIntervalID = setInterval(this.actionInterval.bind(this), 1000);
42
43 // Resize and update
44 this.renderArea.resize(100, 57);
45 this.update(true);
46 }
47
48 // getRenderArea()
49 public getRenderArea(): RenderArea{

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
bindMethod · 0.80
resizeMethod · 0.65

Tested by

no test coverage detected