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

Method constructor

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

Source from the content-addressed store, hash-verified

13
14 // Constructor
15 constructor(game: Game){
16 super(game);
17
18 // Resize the area
19 this.renderArea.resizeFromArray(Database.getAscii("places/village/village"), 0, 3);
20
21 // Update
22 this.update();
23 }
24
25 // Public methods
26 public willBeDisplayed(): void{

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
resizeFromArrayMethod · 0.80
getAsciiMethod · 0.80

Tested by

no test coverage detected