Class HegemonyHostileActivityFactor
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.HegemonyHostileActivityFactor
- All Implemented Interfaces:
EventFactor
,HostileActivityFactor
,HegemonyInspectionIntel.InspectionEndedListener
public class HegemonyHostileActivityFactor
extends BaseHostileActivityFactor
implements HegemonyInspectionIntel.InspectionEndedListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
static final String
static String
static float
static float
static float
static String
static int
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) void
addStageDescriptionForEvent
(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage, TooltipMakerAPI info) void
advance
(float amount) static void
createFleet
(StarSystemAPI system, Random random) boolean
createInspection
(MarketAPI target, Integer fpOverride) boolean
fireEvent
(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage) getDesc
(BaseEventIntel intel) getDescColor
(BaseEventIntel intel) float
getEffectMagnitude
(StarSystemAPI system) float
static int
static int
getMainRowTooltip
(BaseEventIntel intel) int
getMaxNumFleets
(StarSystemAPI system) getNameForThreatList
(boolean first) int
getProgress
(BaseEventIntel intel) getProgressStr
(BaseEventIntel intel) static void
static void
static boolean
void
void
void
void
rollEvent
(HostileActivityEventIntel intel, BaseEventIntel.EventStageData stage) static void
boolean
shouldShow
(BaseEventIntel intel) Methods inherited from class com.fs.starfarer.api.impl.campaign.intel.events.BaseHostileActivityFactor
addCause, addExtraRows, checkFactionExists, getCauseOfClass, getCauses, getDefaultEventTooltip, getEventStageSound, getId, getNameColorForThreatList, 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
-
HASSLE_REASON
- See Also:
-
DEFEATED_HEGEMONY
-
INSPECTION_ATTEMPTS
-
INSPECTIONS_DEFEATED
-
INSPECTIONS_TO_DEFEAT
public static int INSPECTIONS_TO_DEFEAT -
INSPECTION_STRENGTH_FIRST
public static float INSPECTION_STRENGTH_FIRST -
INSPECTION_STRENGTH_SECOND
public static float INSPECTION_STRENGTH_SECOND -
INSPECTION_STRENGTH_FINAL
public static float INSPECTION_STRENGTH_FINAL
-
-
Constructor Details
-
HegemonyHostileActivityFactor
-
-
Method Details
-
isPlayerDefeatedHegemony
public static boolean isPlayerDefeatedHegemony() -
setPlayerDefeatedHegemony
public static void setPlayerDefeatedHegemony() -
getInspectionAttempts
public static int getInspectionAttempts() -
incrInspectionAttempts
public static void incrInspectionAttempts() -
getInspectionsDefeated
public static int getInspectionsDefeated() -
incrInspectionsDefeated
public static void incrInspectionsDefeated() -
getProgressStr
- Specified by:
getProgressStr
in interfaceEventFactor
- Overrides:
getProgressStr
in classBaseEventFactor
-
getProgress
- Specified by:
getProgress
in interfaceEventFactor
- Overrides:
getProgress
in classBaseHostileActivityFactor
-
getEffectMagnitude
- Specified by:
getEffectMagnitude
in interfaceHostileActivityFactor
- Overrides:
getEffectMagnitude
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
-
getMaxNumFleets
- Specified by:
getMaxNumFleets
in interfaceHostileActivityFactor
- Overrides:
getMaxNumFleets
in classBaseHostileActivityFactor
-
createFleet
- Specified by:
createFleet
in interfaceHostileActivityFactor
- Overrides:
createFleet
in classBaseHostileActivityFactor
-
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
-
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
-
pickTargetMarket
-
pickSourceMarket
-
rollEvent
- Specified by:
rollEvent
in interfaceHostileActivityFactor
- Overrides:
rollEvent
in classBaseHostileActivityFactor
-
fireEvent
- Specified by:
fireEvent
in interfaceHostileActivityFactor
- Overrides:
fireEvent
in classBaseHostileActivityFactor
-
createInspection
-
advance
public void advance(float amount) - Specified by:
advance
in interfaceEventFactor
- Overrides:
advance
in classBaseEventFactor
-
avertInspectionIfNotInProgress
public static void avertInspectionIfNotInProgress() -
notifyInspectionEnded
- Specified by:
notifyInspectionEnded
in interfaceHegemonyInspectionIntel.InspectionEndedListener
-