schedule(nTime) {
        const d = this.aCommands.delayed;
        this.nTime = nTime;
        if (this.bInvalid) { // trier en cas d'invalidité
            d.sort(function(a, b) { return a.delay - b.delay; });
            this.bInvalid = false;
        }
        while (d.length > 0 && d[0].delay <= nTime) {
            d.shift().command();
        }
        const aLooped = this.aCommands.looped;
        for (let i = 0, l = aLooped.length; i < l; ++i) {
            const c = aLooped[i];
            while (c.time <= nTime) {
                c.time += c.duration;
                c.command();
            }
        }
    }
/**
     * Will execute any command which delay has expired
     * @param nTime {number}
     */
Will execute any command which delay has expired
@param nTime {number}
Will execute any command which delay has expired @param nTime { number }
schedule(nTime) {
        const d = this.aCommands.delayed;
        this.nTime = nTime;
        if (this.bInvalid) { 
            d.sort(function(a, b) { return a.delay - b.delay; });
            this.bInvalid = false;
        }
        while (d.length > 0 && d[0].delay <= nTime) {
            d.shift().command();
        }
        const aLooped = this.aCommands.looped;
        for (let i = 0, l = aLooped.length; i < l; ++i) {
            const c = aLooped[i];
            while (c.time <= nTime) {
                c.time += c.duration;
                c.command();
            }
        }
    }
schedule ( nTime ) { const d = this . aCommands . delayed ; this . nTime = nTime ; if ( this . bInvalid ) { d . sort ( function ( a , b ) { return a . delay - b . delay ; } ) ; this . bInvalid = false ; } while ( d . length > 0 && d [ 0 ] . delay <= nTime ) { d . shift ( ) . command ( ) ; } const aLooped = this . aCommands . looped ; for ( let i = 0 , l = aLooped . length ; i < l ; ++ i ) { const c = aLooped [ i ] ; while ( c . time <= nTime ) { c . time += c . duration ; c . command ( ) ; } } }
Will execute any command which delay has expired
 @param nTime {number}
Will execute any command which delay has expired @param nTime { number }
// trier en cas d'invalidité