Class PerseanLeagueHostileActivityFactor
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.PerseanLeagueHostileActivityFactor
- All Implemented Interfaces:
ColonyPlayerHostileActListener
,EventFactor
,HostileActivityFactor
,FleetGroupIntel.FGIEventListener
public class PerseanLeagueHostileActivityFactor
extends BaseHostileActivityFactor
implements FleetGroupIntel.FGIEventListener, ColonyPlayerHostileActListener
-
Field Summary
FieldsFields 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) void
addStageDescriptionForEvent
(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, TooltipMakerAPI info) void
advance
(float amount) createFleet
(StarSystemAPI system, Random random) static StarSystemAPI
boolean
fireEvent
(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage) getBlockadeSource
(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, StarSystemAPI target) getDesc
(BaseEventIntel intel) getDescColor
(BaseEventIntel intel) float
static MarketAPI
getKazeron
(boolean requireMilitaryBase) getMainRowTooltip
(BaseEventIntel intel) int
getMaxNumFleets
(StarSystemAPI system) getNameColor
(float mag) getNameForThreatList
(boolean first) int
getProgress
(BaseEventIntel intel) getProgressStr
(BaseEventIntel intel) float
void
void
void
reportFGIAborted
(FleetGroupIntel intel) 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) boolean
shouldShow
(BaseEventIntel intel) boolean
startBlockade
(MarketAPI source, StarSystemAPI target, BaseEventIntel.EventStageData stage, Random random) static boolean
Methods inherited from class com.fs.starfarer.api.impl.campaign.intel.events.BaseHostileActivityFactor
addCause, addExtraRows, checkFactionExists, getCauseOfClass, getCauses, getDefaultEventTooltip, getEffectMagnitude, getEventStageSound, getId, getNameColorForThreatList, getRandomizedStageRandom, getRandomizedStageRandom, getRandomizedStageSeed, getSpawnFrequency, 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
-
HASSLE_REASON
- See Also:
-
-
Constructor Details
-
PerseanLeagueHostileActivityFactor
-
-
Method Details
-
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
-
shouldShow
- Specified by:
shouldShow
in interfaceEventFactor
- Overrides:
shouldShow
in classBaseEventFactor
-
getNameColor
-
getMaxNumFleets
- Specified by:
getMaxNumFleets
in interfaceHostileActivityFactor
- Overrides:
getMaxNumFleets
in classBaseHostileActivityFactor
-
getSpawnInHyperProbability
- Specified by:
getSpawnInHyperProbability
in interfaceHostileActivityFactor
- Overrides:
getSpawnInHyperProbability
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
-
findBlockadeTarget
public static StarSystemAPI findBlockadeTarget(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage) -
getBlockadeSource
public MarketAPI getBlockadeSource(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, StarSystemAPI target) -
getKazeron
-
wasPLEverSatBombardedByPlayer
public static boolean wasPLEverSatBombardedByPlayer() -
startBlockade
public boolean startBlockade(MarketAPI source, StarSystemAPI target, BaseEventIntel.EventStageData stage, Random random) -
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
-
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
-
advance
public void advance(float amount) - Specified by:
advance
in interfaceEventFactor
- Overrides:
advance
in classBaseEventFactor
-