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

Method addGround

code/main/Forest.ts:102–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101 // Private methods
102 private addGround(): void{
103 var ground: Wall = new Wall(this, new Pos(0, 0));
104 ground.addBox(new Pos(0, this.groundYPosition+1), new Pos(350, 1));
105 this.addEntity(ground);
106 }
107
108 private addMosquito(): boolean{
109 return this.addEntity(new Mosquito(this, new Pos(0, this.groundYPosition-Random.between(3, 7)), this.groundYPosition));

Callers 1

constructorMethod · 0.95

Calls 2

addBoxMethod · 0.95
addEntityMethod · 0.80

Tested by

no test coverage detected