MCPcopy Create free account
hub / github.com/SpringRoll/SpringRoll / play

Method play

src/hints/HintSequencePlayer.js:24–36  ·  view source on GitHub ↗

* invokes the next hint * @return {void}@memberof HintSequencePlayer

()

Source from the content-addressed store, hash-verified

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

Callers 2

constructorMethod · 0.80

Calls 1

logMethod · 0.80

Tested by

no test coverage detected