public class TriTachyonHostileActivityFactor extends BaseHostileActivityFactor implements FleetGroupIntel.FGIEventListener, FleetEventListener, ColonyPlayerHostileActListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BRIBED_MERC_ATTACK |
static java.lang.String |
COMMERCE_RAIDER_FLEET |
static java.lang.String |
COUNTER_RAIDED_TRITACH |
static float |
DEALT_WITH_MERC_PROGRESS_MULT |
static java.lang.String |
DEFEATED_MERC_ATTACK |
protected TimeoutTracker<Industry> |
recentlyDisrupted |
causes, intel, seedTOOLTIP_WIDTHNEGATED_FACTOR_PROGRESS| Constructor and Description |
|---|
TriTachyonHostileActivityFactor(HostileActivityEventIntel intel) |
addCause, addExtraRows, checkFactionExists, getCauseOfClass, getCauses, getDefaultEventTooltip, getEffectMagnitude, getEventStageSound, getId, getRandomizedStageRandom, getRandomizedStageRandom, getRandomizedStageSeed, getSpawnFrequency, getSpawnInHyperProbability, getStayInHyperProbability, removeCauseOfClass, resetEvent, setRandomizedStageSeedaddBorder, addBulletPointForOneTimeFactor, getAllProgressMult, getMainRowTooltip, getProgressColor, isExpired, isOneTime, notifyEventEndedpublic static java.lang.String COUNTER_RAIDED_TRITACH
public static java.lang.String DEFEATED_MERC_ATTACK
public static java.lang.String BRIBED_MERC_ATTACK
public static java.lang.String COMMERCE_RAIDER_FLEET
public static float DEALT_WITH_MERC_PROGRESS_MULT
protected TimeoutTracker<Industry> recentlyDisrupted
public TriTachyonHostileActivityFactor(HostileActivityEventIntel intel)
public static boolean isPlayerCounterRaidedTriTach()
public static void setPlayerCounterRaidedTriTach()
public static boolean isPlayerDefeatedMercAttack()
public static void setPlayerDefeatedMercAttack()
public static boolean isDealtWithMercAttack()
public static boolean isPlayerBribedMercAttack()
public static void setPlayerBribedMercAttack()
protected java.lang.Object readResolve()
public java.lang.String getProgressStr(BaseEventIntel intel)
getProgressStr in interface EventFactorgetProgressStr in class BaseEventFactorpublic int getProgress(BaseEventIntel intel)
getProgress in interface EventFactorgetProgress in class BaseHostileActivityFactorpublic java.lang.String getDesc(BaseEventIntel intel)
getDesc in interface EventFactorgetDesc in class BaseEventFactorpublic java.lang.String getNameForThreatList(boolean first)
getNameForThreatList in interface HostileActivityFactorgetNameForThreatList in class BaseHostileActivityFactorpublic java.awt.Color getDescColor(BaseEventIntel intel)
getDescColor in interface EventFactorgetDescColor in class BaseEventFactorpublic TooltipMakerAPI.TooltipCreator getMainRowTooltip(BaseEventIntel intel)
getMainRowTooltip in interface EventFactorgetMainRowTooltip in class BaseEventFactorpublic static void addDealtSectionToTooltip(TooltipMakerAPI tooltip, float opad)
public boolean shouldShow(BaseEventIntel intel)
shouldShow in interface EventFactorshouldShow in class BaseEventFactorpublic java.awt.Color getNameColor(float mag)
public int getMaxNumFleets(StarSystemAPI system)
getMaxNumFleets in interface HostileActivityFactorgetMaxNumFleets in class BaseHostileActivityFactorpublic CampaignFleetAPI createFleet(StarSystemAPI system, java.util.Random random)
createFleet in interface HostileActivityFactorcreateFleet in class BaseHostileActivityFactorpublic void addBulletPointForEvent(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode, boolean isUpdate, java.awt.Color tc, float initPad)
addBulletPointForEvent in interface HostileActivityFactoraddBulletPointForEvent in class BaseHostileActivityFactorpublic void addBulletPointForEventReset(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode, boolean isUpdate, java.awt.Color tc, float initPad)
addBulletPointForEventReset in interface HostileActivityFactoraddBulletPointForEventReset in class BaseHostileActivityFactorpublic void addStageDescriptionForEvent(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, TooltipMakerAPI info)
addStageDescriptionForEvent in interface HostileActivityFactoraddStageDescriptionForEvent in class BaseHostileActivityFactorpublic java.lang.String getEventStageIcon(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage)
getEventStageIcon in interface HostileActivityFactorgetEventStageIcon in class BaseHostileActivityFactorpublic TooltipMakerAPI.TooltipCreator getStageTooltipImpl(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage)
getStageTooltipImpl in interface HostileActivityFactorgetStageTooltipImpl in class BaseHostileActivityFactorpublic float getEventFrequency(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage)
getEventFrequency in interface HostileActivityFactorgetEventFrequency in class BaseHostileActivityFactorpublic void rollEvent(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage)
rollEvent in interface HostileActivityFactorrollEvent in class BaseHostileActivityFactorpublic boolean fireEvent(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage)
fireEvent in interface HostileActivityFactorfireEvent in class BaseHostileActivityFactorpublic static StarSystemAPI findExpeditionTarget(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage)
public static MarketAPI findExpeditionSource(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, StarSystemAPI target)
public void reportFGIAborted(FleetGroupIntel intel)
reportFGIAborted in interface FleetGroupIntel.FGIEventListenerpublic void notifyFactorRemoved()
notifyFactorRemoved in interface EventFactornotifyFactorRemoved in class BaseEventFactorpublic void notifyEventEnding()
notifyEventEnding in interface EventFactornotifyEventEnding in class BaseEventFactorpublic void advance(float amount)
advance in interface EventFactoradvance in class BaseEventFactorpublic static StarSystemAPI getPrimaryTriTachyonSystem()
public boolean startMercenaryAttack(MarketAPI source, StarSystemAPI target, BaseEventIntel.EventStageData stage, HostileActivityEventIntel intel, java.util.Random random)
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, java.lang.Object param)
reportFleetDespawnedToListener in interface FleetEventListenerpublic void reportBattleOccurred(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle)
FleetEventListenerreportBattleOccurred in interface FleetEventListenerpublic static boolean isCommerceRaider(CampaignFleetAPI fleet)
public static boolean isTraderServingATTColony(CampaignFleetAPI fleet)
public static int computeTTCRProgressPoints(float fleetPointsDestroyed)
public static int computeIndustryDisruptPoints(Industry ind)
public void reportRaidForValuablesFinishedBeforeCargoShown(InteractionDialogAPI dialog, MarketAPI market, MarketCMD.TempData actionData, CargoAPI cargo)
reportRaidForValuablesFinishedBeforeCargoShown in interface ColonyPlayerHostileActListenerpublic void reportRaidToDisruptFinished(InteractionDialogAPI dialog, MarketAPI market, MarketCMD.TempData actionData, Industry industry)
reportRaidToDisruptFinished in interface ColonyPlayerHostileActListenerpublic void reportTacticalBombardmentFinished(InteractionDialogAPI dialog, MarketAPI market, MarketCMD.TempData actionData)
reportTacticalBombardmentFinished in interface ColonyPlayerHostileActListenerpublic void reportSaturationBombardmentFinished(InteractionDialogAPI dialog, MarketAPI market, MarketCMD.TempData actionData)
reportSaturationBombardmentFinished in interface ColonyPlayerHostileActListenerpublic void applyMassIndustryDisruptionToTTCR(MarketAPI market, InteractionDialogAPI dialog)
public void applyIndustryDisruptionToTTCR(Industry industry, InteractionDialogAPI dialog)
public java.awt.Color getNameColorForThreatList()
getNameColorForThreatList in interface HostileActivityFactorgetNameColorForThreatList in class BaseHostileActivityFactor