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

Method constructor

code/main/TheCave.ts:26–41  ·  view source on GitHub ↗
(game: Game)

Source from the content-addressed store, hash-verified

24
25 // Constructor
26 constructor(game: Game){
27 super(game);
28
29 // Add the additional characters to the array
30 this.createAdditionalCharactersPossible();
31
32 // Add the additional characters positions to the array
33 this.createAdditionalCharactersPositionsPossible();
34
35 // Create the current way
36 this.createWay();
37
38 // Resize & update
39 this.renderArea.resizeFromArray(Database.getAscii("places/theCave/ways"), 42, 7); // 3 for the return to map button + 4 for the two sentences = 7
40 this.update();
41 }
42
43 // getRenderArea()
44 public getRenderArea(): RenderArea{

Callers

nothing calls this directly

Calls 6

createWayMethod · 0.95
updateMethod · 0.95
resizeFromArrayMethod · 0.80
getAsciiMethod · 0.80

Tested by

no test coverage detected