001package com.fs.starfarer.api.impl.campaign.intel.events;
002
003import java.awt.Color;
004
005import com.fs.starfarer.api.campaign.StarSystemAPI;
006import com.fs.starfarer.api.ui.TooltipMakerAPI;
007import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
008
009/**
010 * There can be multiple "causes" for the same type of hostile activity. For example,
011 * there may be more pirates because:
012 * 1) General pirate activity due to having a colony
013 * 2) Free port attracting more of them
014 * 3) A pirate base nearby
015 * 
016 * And so on.
017 * 
018 * 
019 * @author Alex
020 *
021 * Copyright 2022 Fractal Softworks, LLC
022 */
023public interface HostileActivityCause2 {
024        //void addDescToTooltip(TooltipMakerAPI tooltip, float pad);
025        float getMagnitudeContribution(StarSystemAPI system);
026        
027        /**
028         * Progress is used to advance the event, MagnitudeContribution is for fleet spawning for... legacy reasons.
029         * May refactor this later.
030         * @return
031         */
032        int getProgress();
033        
034        boolean shouldShow();
035        String getDesc();
036        String getProgressStr();
037        Color getDescColor(BaseEventIntel intel);
038        Color getProgressColor(BaseEventIntel intel);
039        TooltipCreator getTooltip();
040
041        void addExtraRows(TooltipMakerAPI info, BaseEventIntel intel);
042}
043
044
045
046