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

Method constructor

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

Source from the content-addressed store, hash-verified

23
24 // Constructor
25 constructor(game: Game){
26 super(game);
27
28 // We create the questions array
29 this.createQuestionsArray();
30
31 // We resize and update
32 this.renderArea.resizeFromArray(Database.getAscii("places/lighthouse/lighthouse"), 0, 4); // 4 in order to add a space below the lighthouse, so that it looks nicer
33 this.update();
34 }
35
36 // getRenderArea()
37 public getRenderArea(): RenderArea{

Callers

nothing calls this directly

Calls 4

createQuestionsArrayMethod · 0.95
updateMethod · 0.95
resizeFromArrayMethod · 0.80
getAsciiMethod · 0.80

Tested by

no test coverage detected