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

Method constructor

code/main/CastleBigRoom.ts:17–34  ·  view source on GitHub ↗
(game: Game)

Source from the content-addressed store, hash-verified

15
16 // Constructor
17 constructor(game: Game){
18 super(game);
19
20 // At first the hoven is waiting
21 this.hovenWaiting = true;
22
23 // Set the default speech, depending on if the hoven is happy or not
24 if(Saving.loadBool("castleBigRoomHovenHappy") == false){
25 this.currentSpeech = "castleBigRoomHovenSpeechSad";
26 }
27 else{
28 this.currentSpeech = "castleBigRoomHovenSpeechHappy";
29 }
30
31 // Resize the area and update
32 this.renderArea.resize(160, 30);
33 this.update();
34 }
35
36 // getRenderArea()
37 public getRenderArea(): RenderArea{

Callers

nothing calls this directly

Calls 2

updateMethod · 0.95
resizeMethod · 0.65

Tested by

no test coverage detected