public class HostileActivityEventIntel extends BaseEventIntel implements EconomyAPI.EconomyUpdateListener, FleetEventListener
| Modifier and Type | Class and Description |
|---|---|
static class |
HostileActivityEventIntel.HAEFactorDangerData |
static class |
HostileActivityEventIntel.HAERandomEventData |
static class |
HostileActivityEventIntel.HAEStarSystemDangerData |
static class |
HostileActivityEventIntel.Stage |
BaseEventIntel.EventStageData, BaseEventIntel.EventStageDisplayData, BaseEventIntel.RandomizedStageType, BaseEventIntel.StageIconSizeIntelInfoPlugin.ArrowData, IntelInfoPlugin.IntelSortTier, IntelInfoPlugin.ListInfoMode, IntelInfoPlugin.TableRowClickData| Modifier and Type | Field and Description |
|---|---|
protected int |
blowback |
static java.lang.String |
BUTTON_ESCALATE |
static int |
ESCALATE_PROGRESS |
static float |
FP_PER_POINT |
static java.lang.String |
KEY |
static int |
MAX_PROGRESS |
protected HostileActivityFactor |
prevMajorEventPick |
static int |
RESET_MAX |
static int |
RESET_MIN |
protected java.util.Map<java.lang.String,MutableStatWithTempMods> |
systemSpawnMults |
addingFactorDialog, factors, maxProgress, prevProgressDeltaWasPositive, progress, progressDeltaRemainder, random, RANDOM_EVENT_NONE, sortTier, stages, uiWidthBULLET, BUTTON_DELETE, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, tagsForSort, timestampLIST_ITEM_TEXT_WIDTH, NEW_DAYS| Constructor and Description |
|---|
HostileActivityEventIntel() |
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, withOneTimeFactorsaddBulletPoints, 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, unindentpublic static java.lang.String KEY
public static java.lang.String BUTTON_ESCALATE
public static float FP_PER_POINT
public static int MAX_PROGRESS
public static int ESCALATE_PROGRESS
public static int RESET_MIN
public static int RESET_MAX
protected int blowback
protected java.util.Map<java.lang.String,MutableStatWithTempMods> systemSpawnMults
protected HostileActivityFactor prevMajorEventPick
public HostileActivityEventIntel()
public static HostileActivityEventIntel get()
protected void setup()
protected java.lang.Object readResolve()
public void redoSetupIfNeeded()
protected void notifyEnding()
notifyEnding in class BaseEventIntelprotected void notifyEnded()
notifyEnded in class BaseEventIntelprotected void addBulletPoints(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode, boolean isUpdate, java.awt.Color tc, float initPad)
addBulletPoints in class BaseIntelPluginpublic HostileActivityEventIntel.HAERandomEventData getRollDataForEvent()
public void addStageDescriptionText(TooltipMakerAPI info, float width, java.lang.Object stageId)
addStageDescriptionText in class BaseEventIntelpublic void afterStageDescriptions(TooltipMakerAPI main)
afterStageDescriptions in class BaseEventIntelpublic void tableRowClicked(IntelUIAPI ui, IntelInfoPlugin.TableRowClickData data)
tableRowClicked in interface IntelInfoPlugintableRowClicked in class BaseIntelPluginpublic TooltipMakerAPI.TooltipCreator getStageTooltipImpl(java.lang.Object stageId)
getStageTooltipImpl in class BaseEventIntelpublic java.lang.String getIcon()
IntelInfoPlugingetIcon in interface IntelInfoPlugingetIcon in class BaseIntelPluginprotected java.lang.String getStageIcon(java.lang.Object stageId)
getStageIcon in class BaseEventIntelpublic TooltipMakerAPI.TooltipCreator getStageTooltip(java.lang.Object stageId)
getStageTooltip in class BaseEventIntelprotected java.lang.String getStageIconImpl(java.lang.Object stageId)
getStageIconImpl in class BaseEventIntelpublic java.awt.Color getBarColor()
getBarColor in class BaseEventIntelpublic java.awt.Color getBarProgressIndicatorColor()
getBarProgressIndicatorColor in class BaseEventIntelprotected int getStageImportance(java.lang.Object stageId)
getStageImportance in class BaseEventIntelprotected java.lang.String getName()
getName in class BaseIntelPluginpublic boolean isEventProgressANegativeThingForThePlayer()
isEventProgressANegativeThingForThePlayer in class BaseEventIntelpublic void addActivity(BaseHostileActivityFactor factor, HostileActivityCause2 cause)
public void removeActivityCause(java.lang.Class activityClass, java.lang.Class causeClass)
public HostileActivityCause2 getActivityCause(java.lang.Class activityClass, java.lang.Class causeClass)
public void removeActivity(BaseHostileActivityFactor plugin)
public void removeActivityOfClass(java.lang.Class c)
public BaseHostileActivityFactor getActivityOfClass(java.lang.Class c)
public java.util.List<HostileActivityEventIntel.HAEStarSystemDangerData> computePlayerSystemDangerData()
public HostileActivityEventIntel.HAEStarSystemDangerData computeDangerData(StarSystemAPI system)
public WarSimScript.LocationDanger getDanger(float mag)
public java.lang.String getDangerString(float mag)
public java.lang.String getDangerString(WarSimScript.LocationDanger d)
public java.awt.Color getDangerColor(float mag)
public float getVeryApproximateFPStrength(StarSystemAPI system)
public float getMarketPresenceFactor(StarSystemAPI system)
system - public float getTotalActivityMagnitude(StarSystemAPI system)
public float getTotalActivityMagnitude(StarSystemAPI system, boolean capped)
protected void advanceImpl(float amount)
advanceImpl in class BaseEventIntelpublic MutableStatWithTempMods getNumFleetsStat(StarSystemAPI system)
public float getNumFleetsMultiplier(StarSystemAPI system)
public void economyUpdated()
economyUpdated in interface EconomyAPI.EconomyUpdateListenerpublic void cleanUpHostileActivityConditions()
public boolean isEconomyListenerExpired()
isEconomyListenerExpired in interface EconomyAPI.EconomyUpdateListenerpublic void commodityUpdated(java.lang.String commodityId)
commodityUpdated in interface EconomyAPI.EconomyUpdateListenerpublic 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 int computeProgressPoints(float fleetPointsDestroyed)
protected void notifyStageReached(BaseEventIntel.EventStageData stage)
notifyStageReached in class BaseEventIntelprotected int getResetProgress(boolean fired)
public void resetHA_EVENT()
public void resetHA_EVENTIfFromFactor(HostileActivityFactor factor)
public void resetRandomizedStage(BaseEventIntel.EventStageData stage)
resetRandomizedStage in class BaseEventIntelpublic void rollRandomizedStage(BaseEventIntel.EventStageData stage)
rollRandomizedStage in class BaseEventIntelpublic java.util.Set<java.lang.String> getIntelTags(SectorMapAPI map)
IntelInfoPlugingetIntelTags in interface IntelInfoPlugingetIntelTags in class BaseEventIntelpublic void addFactor(EventFactor factor)
addFactor in class BaseEventIntelpublic void reportEconomyMonthEnd()
reportEconomyMonthEnd in interface EconomyTickListenerreportEconomyMonthEnd in class BaseEventIntelpublic void addBlowback(int points)
public int getBlowback()
public void setBlowback(int blowback)
protected java.lang.String getSoundForOtherUpdate(java.lang.Object param)
getSoundForOtherUpdate in class BaseEventIntelpublic int getMaxMonthlyProgress()
getMaxMonthlyProgress in class BaseEventIntelpublic void storyActionConfirmed(java.lang.Object buttonId, IntelUIAPI ui)
storyActionConfirmed in interface IntelInfoPluginstoryActionConfirmed in class BaseIntelPluginpublic StoryPointActionDelegate getButtonStoryPointActionDelegate(java.lang.Object buttonId)
getButtonStoryPointActionDelegate in interface IntelInfoPlugingetButtonStoryPointActionDelegate in class BaseIntelPlugin