greenFlag () {
        this.stopAll();
        this.emit(Runtime.PROJECT_START);
        this.ioDevices.clock.resetProjectTimer();
        this.clearEdgeActivatedValues();
        // Inform all targets of the green flag.
        for (let i = 0; i < this.targets.length; i++) {
            this.targets[i].onGreenFlag();
        }
        this.startHats('event_whenflagclicked');
    }
/**
     * Start all threads that start with the green flag.
     */
Start all threads that start with the green flag.
Start all threads that start with the green flag .
greenFlag () {
        this.stopAll();
        this.emit(Runtime.PROJECT_START);
        this.ioDevices.clock.resetProjectTimer();
        this.clearEdgeActivatedValues();
        for (let i = 0; i < this.targets.length; i++) {
            this.targets[i].onGreenFlag();
        }
        this.startHats('event_whenflagclicked');
    }
greenFlag ( ) { this . stopAll ( ) ; this . emit ( Runtime . PROJECT_START ) ; this . ioDevices . clock . resetProjectTimer ( ) ; this . clearEdgeActivatedValues ( ) ; for ( let i = 0 ; i < this . targets . length ; i ++ ) { this . targets [ i ] . onGreenFlag ( ) ; } this . startHats ( 'event_whenflagclicked' ) ; }
Start all threads that start with the green flag.
Start all threads that start with the green flag .
// Inform all targets of the green flag.