private void actionProduced()
    {
        for (final ProducerListener listener : listeners)
        {
            listener.notifyProduced(currentObject);
        }
        for (final ProducibleListener listener : current.getFeature(Producible.class).getListeners())
        {
            listener.notifyProductionEnded(this);
        }
        currentObject = null;
        progress = -1;

        // Next production
        if (!productions.isEmpty())
        {
            state = ProducerState.CHECK;
        }
        else
        {
            state = ProducerState.NONE;
        }
    }
private void actionProduced ( ) { for ( final ProducerListener listener : listeners ) { listener . notifyProduced ( currentObject ) ; } for ( final ProducibleListener listener : current . getFeature ( Producible . class ) . getListeners ( ) ) { listener . notifyProductionEnded ( this ) ; } currentObject = null ; progress = - 1 ; if ( ! productions . isEmpty ( ) ) { state = ProducerState . CHECK ; } else { state = ProducerState . NONE ; } }
Action called from update production in produced state.