* invokes the next hint * @return {void}@memberof HintSequencePlayer
()
| 22 | * @return {void}@memberof HintSequencePlayer |
| 23 | */ |
| 24 | play() { |
| 25 | if (this.hints.length == 0) { |
| 26 | Debugger.log('warn', '[HintSequencePlayer.play()] No hints?!'); |
| 27 | return; |
| 28 | } |
| 29 | |
| 30 | if (this.index >= this.hints.length) { |
| 31 | this.index = 0; |
| 32 | } |
| 33 | |
| 34 | this.hints[this.index](); |
| 35 | this.index++; |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * removes all hints |
no test coverage detected