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

Method constructor

code/main/ATree.ts:15–30  ·  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 // If we're going to play tic tac toe
19 if(Saving.loadNumber("aTreeStep") == 7){
20 this.startTicTacToe();
21 }
22
23 // If we're at step 8 (just won the tic tac toe game), go on to step 9
24 if(Saving.loadNumber("aTreeStep") == 8)
25 this.nextStep();
26
27 // Resize & update
28 this.renderArea.resizeFromArray(Database.getAscii("places/aTree/background"), 17, 3);
29 this.update();
30 }
31
32 // getRenderArea()
33 public getRenderArea(): RenderArea{

Callers

nothing calls this directly

Calls 5

startTicTacToeMethod · 0.95
nextStepMethod · 0.95
updateMethod · 0.95
resizeFromArrayMethod · 0.80
getAsciiMethod · 0.80

Tested by

no test coverage detected