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

Method constructor

code/main/ThirdHouseGame.ts:9–19  ·  view source on GitHub ↗
(thirdHouse: ThirdHouse)

Source from the content-addressed store, hash-verified

7
8 // Constructor
9 constructor(thirdHouse: ThirdHouse){
10 // Set the third house from parameter
11 this.thirdHouse = thirdHouse;
12
13 // Create the area
14 this.renderArea = new RenderArea(53, 12);
15
16 // Set the quest slowed down variable at the game level (and the quest speed up too)
17 this.thirdHouse.getGame().setQuestSlowedDown(false);
18 this.thirdHouse.getGame().setQuestSpeedUp(0);
19 }
20
21 // Public methods
22 public pressedDownButton(): void{

Callers

nothing calls this directly

Calls 3

setQuestSlowedDownMethod · 0.80
setQuestSpeedUpMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected