Class HostileActivityEventIntel
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
com.fs.starfarer.api.impl.campaign.intel.events.BaseEventIntel
com.fs.starfarer.api.impl.campaign.intel.events.HostileActivityEventIntel
- All Implemented Interfaces:
IntelInfoPlugin
,EconomyAPI.EconomyUpdateListener
,EconomyTickListener
,FleetEventListener
,EveryFrameScript
,CommRelayEntityPlugin.CommSnifferReadableIntel
,CallEvent.CallableEvent
public class HostileActivityEventIntel
extends BaseEventIntel
implements EconomyAPI.EconomyUpdateListener, FleetEventListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static enum
Nested classes/interfaces inherited from class com.fs.starfarer.api.impl.campaign.intel.events.BaseEventIntel
BaseEventIntel.EventStageData, BaseEventIntel.EventStageDisplayData, BaseEventIntel.RandomizedStageType, BaseEventIntel.StageIconSize
Nested classes/interfaces inherited from interface com.fs.starfarer.api.campaign.comm.IntelInfoPlugin
IntelInfoPlugin.ArrowData, IntelInfoPlugin.IntelSortTier, IntelInfoPlugin.ListInfoMode, IntelInfoPlugin.TableRowClickData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
static String
static int
static float
static String
static int
protected HostileActivityFactor
static int
static int
protected Map<String,
MutableStatWithTempMods> Fields inherited from class com.fs.starfarer.api.impl.campaign.intel.events.BaseEventIntel
addingFactorDialog, factors, maxProgress, prevProgressDeltaWasPositive, progress, progressDeltaRemainder, random, RANDOM_EVENT_NONE, sortTier, stages, uiWidth
Fields inherited from class com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
BULLET, BUTTON_DELETE, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, tagsForSort, timestamp
Fields inherited from interface com.fs.starfarer.api.campaign.comm.IntelInfoPlugin
LIST_ITEM_TEXT_WIDTH, NEW_DAYS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActivity
(BaseHostileActivityFactor factor, HostileActivityCause2 cause) void
addBlowback
(int points) protected void
addBulletPoints
(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode, boolean isUpdate, Color tc, float initPad) void
addFactor
(EventFactor factor) void
addStageDescriptionText
(TooltipMakerAPI info, float width, Object stageId) protected void
advanceImpl
(float amount) void
void
void
commodityUpdated
(String commodityId) computeDangerData
(StarSystemAPI system) static int
computeProgressPoints
(float fleetPointsDestroyed) void
static HostileActivityEventIntel
get()
getActivityCause
(Class activityClass, Class causeClass) int
getButtonStoryPointActionDelegate
(Object buttonId) getDanger
(float mag) getDangerColor
(float mag) getDangerString
(float mag) getIcon()
40x40, no icon if null.getIntelTags
(SectorMapAPI map) Method NEEDS to handle map being null gracefully.float
getMarketPresenceFactor
(StarSystemAPI system) From 0 (at one size-3 market) to 1 (maxSize + count >= 7).int
protected String
getName()
float
getNumFleetsMultiplier
(StarSystemAPI system) getNumFleetsStat
(StarSystemAPI system) protected int
getResetProgress
(boolean fired) protected String
getSoundForOtherUpdate
(Object param) protected String
getStageIcon
(Object stageId) protected String
getStageIconImpl
(Object stageId) protected int
getStageImportance
(Object stageId) getStageTooltip
(Object stageId) getStageTooltipImpl
(Object stageId) float
float
getTotalActivityMagnitude
(StarSystemAPI system, boolean capped) float
boolean
boolean
protected void
protected void
protected void
protected Object
void
void
void
removeActivityCause
(Class activityClass, Class causeClass) void
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
void
reportFleetDespawnedToListener
(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, Object param) void
void
void
void
void
setBlowback
(int blowback) protected void
setup()
void
storyActionConfirmed
(Object buttonId, IntelUIAPI ui) void
Methods inherited from class com.fs.starfarer.api.impl.campaign.intel.events.BaseEventIntel
addEventFactorBulletPoints, addFactor, addStage, addStage, addStage, addStage, addStageDescriptionWithImage, createDisplayData, createIntelInfo, createLargeDescription, getBarBracketColor, getBarHeight, getBarProgressIndicatorHeight, getBarProgressIndicatorLabelColor, getBarProgressIndicatorWidth, getBarTooltip, getBarWidth, getBaseStageColor, getCommMessageSound, getDarkStageColor, getDataFor, getFactorOfClass, getFactors, getImageIndentForStageDesc, getImageSizeForStageDesc, getLastActiveStage, getMaxProgress, getMonthlyProgress, getProgress, getProgressColor, getProgressFraction, getRandom, getRequiredProgress, getSortTier, getSoundForOneTimeFactorUpdate, getSoundForStageReachedUpdate, getStageColor, getStageDownLineLength, getStageIconColor, getStageIconSize, getStageLabel, getStageLabelColor, getStages, getTextPanelForStageChange, hasLargeDescription, hasSmallDescription, isStageActive, isStageActiveAndLast, isStageActiveAndLast, isStageOrOneOffEventReached, putBarProgressIndicatorLabelOnRight, removeFactor, removeFactorOfClass, reportEconomyTick, setHideStageWhenPastIt, setMaxProgress, setProgress, setRandom, setRandomized, setRandomized, setSortTier, withMonthlyFactors, withOneTimeFactors
Methods inherited from class com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
addBulletPoints, addDays, addDays, addDays, addDays, addDeleteButton, addDeleteButton, addGenericButton, addGenericButton, addLogTimestamp, addMarketTable, addMarketToList, addMarketToList, advance, autoAddCampaignMessage, bullet, buttonPressCancelled, buttonPressConfirmed, callEvent, canMakeVisible, canMakeVisibleToCommSniffer, canMakeVisibleToPlayer, canTurnImportantOff, createConfirmationPrompt, createDeleteConfirmationPrompt, createSmallDescription, doesButtonHaveConfirmDialog, endAfterDelay, endAfterDelay, endImmediately, forceAddNextFrame, getArrowData, getBackgroundGlowColor, getBaseDaysAfterEnd, getBulletColorForMode, getCancelText, getCircleBorderColorOverride, getCommRelayRange, getConfirmationPromptWidth, getConfirmText, getDays, getDaysSincePlayerVisible, getDaysString, getFactionForUIColors, getImportantIcon, getListInfoParam, getMapLocation, getPlayerVisibleTimestamp, getPostingLocation, getPostingRangeLY, getSmallDescriptionTitle, getSortString, getSortStringNewestFirst, getSortStringNewestFirst, getSoundColonyThreat, getSoundLogUpdate, getSoundMajorPosting, getSoundMinorMessage, getSoundStandardPosting, getSoundStandardUpdate, getTagsForSort, getTimeRemainingFraction, getTitleColor, hasImportantButton, indent, isDone, isEnded, isEnding, isHidden, isImportant, isNew, isPlayerVisible, isSendingUpdate, notifyPlayerAboutToOpenIntelScreen, reportMadeVisibleToPlayer, reportPlayerClickedOn, reportRemovedIntel, runWhilePaused, sendUpdate, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, setForceAddNextFrame, setHidden, setImportant, setListInfoParam, setNew, setPlayerVisibleTimestamp, setPostingLocation, setPostingRangeLY, setPostingRangeLY, setTagsForSort, shouldRemoveIntel, unindent
-
Field Details
-
KEY
-
BUTTON_ESCALATE
-
FP_PER_POINT
public static float FP_PER_POINT -
MAX_PROGRESS
public static int MAX_PROGRESS -
ESCALATE_PROGRESS
public static int ESCALATE_PROGRESS -
RESET_MIN
public static int RESET_MIN -
RESET_MAX
public static int RESET_MAX -
blowback
protected int blowback -
systemSpawnMults
-
prevMajorEventPick
-
-
Constructor Details
-
HostileActivityEventIntel
public HostileActivityEventIntel()
-
-
Method Details
-
get
-
setup
protected void setup() -
readResolve
-
redoSetupIfNeeded
public void redoSetupIfNeeded() -
notifyEnding
protected void notifyEnding()- Overrides:
notifyEnding
in classBaseEventIntel
-
notifyEnded
protected void notifyEnded()- Overrides:
notifyEnded
in classBaseEventIntel
-
addBulletPoints
protected void addBulletPoints(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode, boolean isUpdate, Color tc, float initPad) - Overrides:
addBulletPoints
in classBaseIntelPlugin
-
getRollDataForEvent
-
addStageDescriptionText
- Overrides:
addStageDescriptionText
in classBaseEventIntel
-
afterStageDescriptions
- Overrides:
afterStageDescriptions
in classBaseEventIntel
-
tableRowClicked
- Specified by:
tableRowClicked
in interfaceIntelInfoPlugin
- Overrides:
tableRowClicked
in classBaseIntelPlugin
-
getStageTooltipImpl
- Overrides:
getStageTooltipImpl
in classBaseEventIntel
-
getIcon
Description copied from interface:IntelInfoPlugin
40x40, no icon if null.- Specified by:
getIcon
in interfaceIntelInfoPlugin
- Overrides:
getIcon
in classBaseIntelPlugin
- Returns:
-
getStageIcon
- Overrides:
getStageIcon
in classBaseEventIntel
-
getStageTooltip
- Overrides:
getStageTooltip
in classBaseEventIntel
-
getStageIconImpl
- Overrides:
getStageIconImpl
in classBaseEventIntel
-
getBarColor
- Overrides:
getBarColor
in classBaseEventIntel
-
getBarProgressIndicatorColor
- Overrides:
getBarProgressIndicatorColor
in classBaseEventIntel
-
getStageImportance
- Overrides:
getStageImportance
in classBaseEventIntel
-
getName
- Overrides:
getName
in classBaseIntelPlugin
-
isEventProgressANegativeThingForThePlayer
public boolean isEventProgressANegativeThingForThePlayer()- Overrides:
isEventProgressANegativeThingForThePlayer
in classBaseEventIntel
-
addActivity
-
removeActivityCause
-
getActivityCause
-
removeActivity
-
removeActivityOfClass
-
getActivityOfClass
-
computePlayerSystemDangerData
-
computeDangerData
-
getDanger
-
getDangerString
-
getDangerString
-
getDangerColor
-
getVeryApproximateFPStrength
-
getMarketPresenceFactor
From 0 (at one size-3 market) to 1 (maxSize + count >= 7). Also capped based on largest market.- Parameters:
system
-- Returns:
-
getTotalActivityMagnitude
-
getTotalActivityMagnitude
-
advanceImpl
protected void advanceImpl(float amount) - Overrides:
advanceImpl
in classBaseEventIntel
-
getNumFleetsStat
-
getNumFleetsMultiplier
-
economyUpdated
public void economyUpdated()- Specified by:
economyUpdated
in interfaceEconomyAPI.EconomyUpdateListener
-
cleanUpHostileActivityConditions
public void cleanUpHostileActivityConditions() -
isEconomyListenerExpired
public boolean isEconomyListenerExpired()- Specified by:
isEconomyListenerExpired
in interfaceEconomyAPI.EconomyUpdateListener
-
commodityUpdated
- Specified by:
commodityUpdated
in interfaceEconomyAPI.EconomyUpdateListener
-
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
-
computeProgressPoints
public static int computeProgressPoints(float fleetPointsDestroyed) -
notifyStageReached
- Overrides:
notifyStageReached
in classBaseEventIntel
-
getResetProgress
protected int getResetProgress(boolean fired) -
resetHA_EVENT
public void resetHA_EVENT() -
resetHA_EVENTIfFromFactor
-
resetRandomizedStage
- Overrides:
resetRandomizedStage
in classBaseEventIntel
-
rollRandomizedStage
- Overrides:
rollRandomizedStage
in classBaseEventIntel
-
getIntelTags
Description copied from interface:IntelInfoPlugin
Method NEEDS to handle map being null gracefully.- Specified by:
getIntelTags
in interfaceIntelInfoPlugin
- Overrides:
getIntelTags
in classBaseEventIntel
- Returns:
-
addFactor
- Overrides:
addFactor
in classBaseEventIntel
-
reportEconomyMonthEnd
public void reportEconomyMonthEnd()- Specified by:
reportEconomyMonthEnd
in interfaceEconomyTickListener
- Overrides:
reportEconomyMonthEnd
in classBaseEventIntel
-
addBlowback
public void addBlowback(int points) -
getBlowback
public int getBlowback() -
setBlowback
public void setBlowback(int blowback) -
getSoundForOtherUpdate
- Overrides:
getSoundForOtherUpdate
in classBaseEventIntel
-
getMaxMonthlyProgress
public int getMaxMonthlyProgress()- Overrides:
getMaxMonthlyProgress
in classBaseEventIntel
-
storyActionConfirmed
- Specified by:
storyActionConfirmed
in interfaceIntelInfoPlugin
- Overrides:
storyActionConfirmed
in classBaseIntelPlugin
-
getButtonStoryPointActionDelegate
- Specified by:
getButtonStoryPointActionDelegate
in interfaceIntelInfoPlugin
- Overrides:
getButtonStoryPointActionDelegate
in classBaseIntelPlugin
-