001package com.fs.starfarer.api.impl.campaign.intel.events;
002
003import java.awt.Color;
004
005import com.fs.starfarer.api.ui.TooltipMakerAPI;
006import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
007
008public interface EventFactor {
009
010        public static String NEGATED_FACTOR_PROGRESS = "---";
011        
012        int getProgress(BaseEventIntel intel);
013        
014        /**
015         * For all factors, not just this one.
016         */
017        float getAllProgressMult(BaseEventIntel intel);
018        
019        
020        String getDesc(BaseEventIntel intel);
021        String getProgressStr(BaseEventIntel intel);
022        
023        Color getDescColor(BaseEventIntel intel);
024        Color getProgressColor(BaseEventIntel intel);
025        
026        @Deprecated TooltipCreator getMainRowTooltip();
027        TooltipCreator getMainRowTooltip(BaseEventIntel intel);
028        
029        boolean shouldShow(BaseEventIntel intel);
030        
031        boolean isOneTime();
032        boolean isExpired();
033        
034        void addExtraRows(TooltipMakerAPI info, BaseEventIntel intel);
035        void notifyEventEnding();
036        void notifyEventEnded();
037        void notifyFactorRemoved();
038        
039        
040        void addBulletPointForOneTimeFactor(BaseEventIntel intel, TooltipMakerAPI info, Color tc, float initPad);
041        
042        void advance(float amount);
043}