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

Method actionSmokes

code/main/CastleRoom2.ts:63–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62 // Private methods
63 private actionSmokes(): void{
64 // If there's at least one smoke
65 if(this.smokes.length > 0){
66 // We make the smokes move
67 for(var i = 0; i < this.smokes.length; i++){
68 this.smokes[i].move();
69 }
70
71 // We update on the page
72 this.update();
73 this.getGame().updatePlace();
74 }
75 }
76
77 private addSmokes(): void{
78 this.smokes.push(new Smoke(45, Random.between(20, 21), 11, Random.between(3, 7), 0, 5));

Callers

nothing calls this directly

Calls 4

updateMethod · 0.95
updatePlaceMethod · 0.80
moveMethod · 0.45
getGameMethod · 0.45

Tested by

no test coverage detected