()
| 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)); |
nothing calls this directly
no test coverage detected