engine/core.js
/**
       Resolve the actions that were registered for this round.
     */
Resolve the actions that were registered for this round.
Resolve the actions that were registered for this round .
resolveRound() {
        this.field.startRound();
        for (let tick = 1; tick <= this.ticksPerRound; tick++) {
            this.field.startTick();
            for (let sub of this.subscriptions[tick - 1]) {
                if (sub.pre && typeof sub.pre === 'function') {
                    sub.pre(tick);
                }
            }
            for (let sub of this.subscriptions[tick - 1]) {
                if (sub.action && typeof sub.action === 'function') {
                    sub.action(tick);
                }
            }
            for (let sub of this.subscriptions[tick - 1]) {
                if (sub.post && typeof sub.post === 'function') {
                    sub.post(tick);
                }
            }
        }
        this.resetSubscriptions();
    }
resolveRound ( ) { this . field . startRound ( ) ; for ( let tick = 1 ; tick <= this . ticksPerRound ; tick ++ ) { this . field . startTick ( ) ; for ( let sub of this . subscriptions [ tick - 1 ] ) { if ( sub . pre && typeof sub . pre === 'function' ) { sub . pre ( tick ) ; } } for ( let sub of this . subscriptions [ tick - 1 ] ) { if ( sub . action && typeof sub . action === 'function' ) { sub . action ( tick ) ; } } for ( let sub of this . subscriptions [ tick - 1 ] ) { if ( sub . post && typeof sub . post === 'function' ) { sub . post ( tick ) ; } } } this . resetSubscriptions ( ) ; }
Resolve the actions that were registered for this round.
Resolve the actions that were registered for this round .
// prepare for execution of this tick