Class TriTachyonHostileActivityFactor
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.events.BaseEventFactor
com.fs.starfarer.api.impl.campaign.intel.events.BaseHostileActivityFactor
com.fs.starfarer.api.impl.campaign.intel.events.TriTachyonHostileActivityFactor
- All Implemented Interfaces:
ColonyPlayerHostileActListener
,FleetEventListener
,EventFactor
,HostileActivityFactor
,FleetGroupIntel.FGIEventListener
public class TriTachyonHostileActivityFactor
extends BaseHostileActivityFactor
implements FleetGroupIntel.FGIEventListener, FleetEventListener, ColonyPlayerHostileActListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
static String
static String
static float
static String
protected TimeoutTracker<Industry>
Fields inherited from class com.fs.starfarer.api.impl.campaign.intel.events.BaseHostileActivityFactor
causes, intel, seed
Fields inherited from class com.fs.starfarer.api.impl.campaign.intel.events.BaseEventFactor
TOOLTIP_WIDTH
Fields inherited from interface com.fs.starfarer.api.impl.campaign.intel.events.EventFactor
NEGATED_FACTOR_PROGRESS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBulletPointForEvent
(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode, boolean isUpdate, Color tc, float initPad) void
addBulletPointForEventReset
(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode, boolean isUpdate, Color tc, float initPad) static void
addDealtSectionToTooltip
(TooltipMakerAPI tooltip, float opad) void
addStageDescriptionForEvent
(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, TooltipMakerAPI info) void
advance
(float amount) void
applyIndustryDisruptionToTTCR
(Industry industry, InteractionDialogAPI dialog) void
applyMassIndustryDisruptionToTTCR
(MarketAPI market, InteractionDialogAPI dialog) static int
static int
computeTTCRProgressPoints
(float fleetPointsDestroyed) createFleet
(StarSystemAPI system, Random random) static MarketAPI
findExpeditionSource
(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, StarSystemAPI target) static StarSystemAPI
boolean
fireEvent
(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage) getDesc
(BaseEventIntel intel) getDescColor
(BaseEventIntel intel) float
getMainRowTooltip
(BaseEventIntel intel) int
getMaxNumFleets
(StarSystemAPI system) getNameColor
(float mag) getNameForThreatList
(boolean first) static MarketAPI
static StarSystemAPI
int
getProgress
(BaseEventIntel intel) getProgressStr
(BaseEventIntel intel) static boolean
isCommerceRaider
(CampaignFleetAPI fleet) static boolean
static boolean
This is actually set in rules, so: method never calledstatic boolean
static boolean
static boolean
void
void
protected Object
void
reportBattleOccurred
(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle) "fleet" will be null if the listener is registered with the ListenerManager, and non-null if the listener is added directly to a fleet.void
reportFGIAborted
(FleetGroupIntel intel) void
reportFleetDespawnedToListener
(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, Object param) void
reportRaidForValuablesFinishedBeforeCargoShown
(InteractionDialogAPI dialog, MarketAPI market, MarketCMD.TempData actionData, CargoAPI cargo) void
reportRaidToDisruptFinished
(InteractionDialogAPI dialog, MarketAPI market, MarketCMD.TempData actionData, Industry industry) void
reportSaturationBombardmentFinished
(InteractionDialogAPI dialog, MarketAPI market, MarketCMD.TempData actionData) void
reportTacticalBombardmentFinished
(InteractionDialogAPI dialog, MarketAPI market, MarketCMD.TempData actionData) void
rollEvent
(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage) static void
static void
static void
boolean
shouldShow
(BaseEventIntel intel) boolean
startMercenaryAttack
(MarketAPI source, StarSystemAPI target, BaseEventIntel.EventStageData stage, HostileActivityEventIntel intel, Random random) Methods inherited from class com.fs.starfarer.api.impl.campaign.intel.events.BaseHostileActivityFactor
addCause, addExtraRows, checkFactionExists, getCauseOfClass, getCauses, getDefaultEventTooltip, getEffectMagnitude, getEventStageSound, getId, getRandomizedStageRandom, getRandomizedStageRandom, getRandomizedStageSeed, getSpawnFrequency, getSpawnInHyperProbability, getStayInHyperProbability, removeCauseOfClass, resetEvent, setRandomizedStageSeed
Methods inherited from class com.fs.starfarer.api.impl.campaign.intel.events.BaseEventFactor
addBorder, addBulletPointForOneTimeFactor, getAllProgressMult, getMainRowTooltip, getProgressColor, isExpired, isOneTime, notifyEventEnded
-
Field Details
-
COUNTER_RAIDED_TRITACH
-
DEFEATED_MERC_ATTACK
-
BRIBED_MERC_ATTACK
-
COMMERCE_RAIDER_FLEET
-
DEALT_WITH_MERC_PROGRESS_MULT
public static float DEALT_WITH_MERC_PROGRESS_MULT -
recentlyDisrupted
-
-
Constructor Details
-
TriTachyonHostileActivityFactor
-
-
Method Details
-
isPlayerCounterRaidedTriTach
public static boolean isPlayerCounterRaidedTriTach() -
setPlayerCounterRaidedTriTach
public static void setPlayerCounterRaidedTriTach() -
isPlayerDefeatedMercAttack
public static boolean isPlayerDefeatedMercAttack() -
setPlayerDefeatedMercAttack
public static void setPlayerDefeatedMercAttack() -
isDealtWithMercAttack
public static boolean isDealtWithMercAttack() -
isPlayerBribedMercAttack
public static boolean isPlayerBribedMercAttack()This is actually set in rules, so: method never called -
setPlayerBribedMercAttack
public static void setPlayerBribedMercAttack() -
readResolve
-
getProgressStr
- Specified by:
getProgressStr
in interfaceEventFactor
- Overrides:
getProgressStr
in classBaseEventFactor
-
getProgress
- Specified by:
getProgress
in interfaceEventFactor
- Overrides:
getProgress
in classBaseHostileActivityFactor
-
getDesc
- Specified by:
getDesc
in interfaceEventFactor
- Overrides:
getDesc
in classBaseEventFactor
-
getNameForThreatList
- Specified by:
getNameForThreatList
in interfaceHostileActivityFactor
- Overrides:
getNameForThreatList
in classBaseHostileActivityFactor
-
getDescColor
- Specified by:
getDescColor
in interfaceEventFactor
- Overrides:
getDescColor
in classBaseEventFactor
-
getMainRowTooltip
- Specified by:
getMainRowTooltip
in interfaceEventFactor
- Overrides:
getMainRowTooltip
in classBaseEventFactor
-
addDealtSectionToTooltip
-
shouldShow
- Specified by:
shouldShow
in interfaceEventFactor
- Overrides:
shouldShow
in classBaseEventFactor
-
getNameColor
-
getMaxNumFleets
- Specified by:
getMaxNumFleets
in interfaceHostileActivityFactor
- Overrides:
getMaxNumFleets
in classBaseHostileActivityFactor
-
createFleet
- Specified by:
createFleet
in interfaceHostileActivityFactor
- Overrides:
createFleet
in classBaseHostileActivityFactor
-
addBulletPointForEvent
public void addBulletPointForEvent(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode, boolean isUpdate, Color tc, float initPad) - Specified by:
addBulletPointForEvent
in interfaceHostileActivityFactor
- Overrides:
addBulletPointForEvent
in classBaseHostileActivityFactor
-
addBulletPointForEventReset
public void addBulletPointForEventReset(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode, boolean isUpdate, Color tc, float initPad) - Specified by:
addBulletPointForEventReset
in interfaceHostileActivityFactor
- Overrides:
addBulletPointForEventReset
in classBaseHostileActivityFactor
-
addStageDescriptionForEvent
public void addStageDescriptionForEvent(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, TooltipMakerAPI info) - Specified by:
addStageDescriptionForEvent
in interfaceHostileActivityFactor
- Overrides:
addStageDescriptionForEvent
in classBaseHostileActivityFactor
-
getEventStageIcon
public String getEventStageIcon(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage) - Specified by:
getEventStageIcon
in interfaceHostileActivityFactor
- Overrides:
getEventStageIcon
in classBaseHostileActivityFactor
-
getStageTooltipImpl
public TooltipMakerAPI.TooltipCreator getStageTooltipImpl(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage) - Specified by:
getStageTooltipImpl
in interfaceHostileActivityFactor
- Overrides:
getStageTooltipImpl
in classBaseHostileActivityFactor
-
getEventFrequency
public float getEventFrequency(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage) - Specified by:
getEventFrequency
in interfaceHostileActivityFactor
- Overrides:
getEventFrequency
in classBaseHostileActivityFactor
-
rollEvent
- Specified by:
rollEvent
in interfaceHostileActivityFactor
- Overrides:
rollEvent
in classBaseHostileActivityFactor
-
fireEvent
- Specified by:
fireEvent
in interfaceHostileActivityFactor
- Overrides:
fireEvent
in classBaseHostileActivityFactor
-
findExpeditionTarget
public static StarSystemAPI findExpeditionTarget(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage) -
findExpeditionSource
public static MarketAPI findExpeditionSource(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, StarSystemAPI target) -
getNortia
-
reportFGIAborted
- Specified by:
reportFGIAborted
in interfaceFleetGroupIntel.FGIEventListener
-
notifyFactorRemoved
public void notifyFactorRemoved()- Specified by:
notifyFactorRemoved
in interfaceEventFactor
- Overrides:
notifyFactorRemoved
in classBaseEventFactor
-
notifyEventEnding
public void notifyEventEnding()- Specified by:
notifyEventEnding
in interfaceEventFactor
- Overrides:
notifyEventEnding
in classBaseEventFactor
-
advance
public void advance(float amount) - Specified by:
advance
in interfaceEventFactor
- Overrides:
advance
in classBaseEventFactor
-
getPrimaryTriTachyonSystem
-
startMercenaryAttack
public boolean startMercenaryAttack(MarketAPI source, StarSystemAPI target, BaseEventIntel.EventStageData stage, HostileActivityEventIntel intel, Random random) -
reportFleetDespawnedToListener
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, Object param) - Specified by:
reportFleetDespawnedToListener
in interfaceFleetEventListener
-
reportBattleOccurred
public void reportBattleOccurred(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle) Description copied from interface:FleetEventListener
"fleet" will be null if the listener is registered with the ListenerManager, and non-null if the listener is added directly to a fleet.- Specified by:
reportBattleOccurred
in interfaceFleetEventListener
-
isCommerceRaider
-
isTraderServingATTColony
-
computeTTCRProgressPoints
public static int computeTTCRProgressPoints(float fleetPointsDestroyed) -
computeIndustryDisruptPoints
-
reportRaidForValuablesFinishedBeforeCargoShown
public void reportRaidForValuablesFinishedBeforeCargoShown(InteractionDialogAPI dialog, MarketAPI market, MarketCMD.TempData actionData, CargoAPI cargo) - Specified by:
reportRaidForValuablesFinishedBeforeCargoShown
in interfaceColonyPlayerHostileActListener
-
reportRaidToDisruptFinished
public void reportRaidToDisruptFinished(InteractionDialogAPI dialog, MarketAPI market, MarketCMD.TempData actionData, Industry industry) - Specified by:
reportRaidToDisruptFinished
in interfaceColonyPlayerHostileActListener
-
reportTacticalBombardmentFinished
public void reportTacticalBombardmentFinished(InteractionDialogAPI dialog, MarketAPI market, MarketCMD.TempData actionData) - Specified by:
reportTacticalBombardmentFinished
in interfaceColonyPlayerHostileActListener
-
reportSaturationBombardmentFinished
public void reportSaturationBombardmentFinished(InteractionDialogAPI dialog, MarketAPI market, MarketCMD.TempData actionData) - Specified by:
reportSaturationBombardmentFinished
in interfaceColonyPlayerHostileActListener
-
applyMassIndustryDisruptionToTTCR
-
applyIndustryDisruptionToTTCR
-
getNameColorForThreatList
- Specified by:
getNameColorForThreatList
in interfaceHostileActivityFactor
- Overrides:
getNameColorForThreatList
in classBaseHostileActivityFactor
-