(className, startIndex, speed)
| 153 | //create ghosts using Constructors |
| 154 | class Ghost { |
| 155 | constructor(className, startIndex, speed) { |
| 156 | this.className = className |
| 157 | this.startIndex = startIndex |
| 158 | this.speed = speed |
| 159 | this.currentIndex = startIndex |
| 160 | this.isScared = false |
| 161 | this.timerId = NaN |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | //all my ghosts |
nothing calls this directly
no outgoing calls
no test coverage detected