public class PirateBaseIntel extends BaseIntelPlugin implements EveryFrameScript, FleetEventListener, EconomyAPI.EconomyUpdateListener, RaidIntel.RaidDelegate
| Modifier and Type | Class and Description |
|---|---|
static class |
PirateBaseIntel.BaseBountyData |
static class |
PirateBaseIntel.PirateBaseTier |
IntelInfoPlugin.ArrowData, IntelInfoPlugin.IntelSortTier, IntelInfoPlugin.ListInfoMode, IntelInfoPlugin.TableRowClickDataBULLET, BUTTON_DELETE, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, tagsForSort, timestampLIST_ITEM_TEXT_WIDTH, NEW_DAYS| Constructor and Description |
|---|
PirateBaseIntel(StarSystemAPI system,
java.lang.String factionId,
PirateBaseIntel.PirateBaseTier tier) |
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, createLargeDescription, doesButtonHaveConfirmDialog, endAfterDelay, endAfterDelay, endImmediately, forceAddNextFrame, getBackgroundGlowColor, getBaseDaysAfterEnd, getBulletColorForMode, getButtonStoryPointActionDelegate, getCancelText, getCircleBorderColorOverride, getCommMessageSound, getCommRelayRange, getConfirmationPromptWidth, getConfirmText, getDays, getDaysSincePlayerVisible, getDaysString, getImportantIcon, getListInfoParam, getPlayerVisibleTimestamp, getPostingLocation, getPostingRangeLY, getSortStringNewestFirst, getSortStringNewestFirst, getSortTier, getSoundColonyThreat, getSoundLogUpdate, getSoundMajorPosting, getSoundMinorMessage, getSoundStandardPosting, getSoundStandardUpdate, getTagsForSort, getTitleColor, hasImportantButton, hasLargeDescription, hasSmallDescription, indent, isDone, isEnded, isEnding, isImportant, isNew, isPlayerVisible, isSendingUpdate, notifyPlayerAboutToOpenIntelScreen, reportMadeVisibleToPlayer, reportPlayerClickedOn, reportRemovedIntel, sendUpdate, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, setForceAddNextFrame, setHidden, setImportant, setListInfoParam, setNew, setPlayerVisibleTimestamp, setPostingLocation, setPostingRangeLY, setPostingRangeLY, setTagsForSort, shouldRemoveIntel, storyActionConfirmed, tableRowClicked, unindentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadvance, isDonepublic static final java.lang.String PIRATE_BASE_COMMANDER
public static final java.lang.String HAS_DEAL_WITH_BASE_COMMANDER
public static java.lang.String MEM_FLAG
public static java.lang.Object DEAL_MADE_PARAM
public static java.lang.Object DEAL_BROKEN_PARAM
public static java.lang.Object DEAL_CANCELLED_PARAM
public static java.lang.Object BOUNTY_EXPIRED_PARAM
public static java.lang.Object DISCOVERED_PARAM
public static org.apache.log4j.Logger log
protected StarSystemAPI system
protected PersonAPI baseCommander
protected SectorEntityToken entity
protected float elapsedDays
protected float duration
protected PirateBaseIntel.BaseBountyData bountyData
protected PirateBaseIntel.PirateBaseTier tier
protected PirateBaseIntel.PirateBaseTier matchedStationToTier
protected IntervalUtil monthlyInterval
protected int raidTimeoutMonths
protected CampaignFleetAPI addedListenerTo
protected PersonBountyIntel.BountyResult result
protected boolean sentBountyUpdate
protected int monthsWithSameTarget
protected int monthsAtCurrentTier
protected StarSystemAPI target
protected boolean targetPlayerColoniesOnly
protected StarSystemAPI forceTarget
public PirateBaseIntel(StarSystemAPI system, java.lang.String factionId, PirateBaseIntel.PirateBaseTier tier)
public static PirateBaseIntel getIntelFor(StarSystemAPI system)
public static PirateBaseIntel getIntelFor(SectorEntityToken station)
public static PirateBaseIntel getIntelFor(MarketAPI market)
public boolean playerHasDealWithBaseCommander()
public void setPlayerHasDealWithBaseCommander(boolean hasDeal)
public boolean isHidden()
IntelInfoPluginisHidden in interface IntelInfoPluginisHidden in class BaseIntelPluginpublic float getRaidFP()
public float getBaseRaidFP()
public void notifyRaidEnded(RaidIntel raid, RaidIntel.RaidStageStatus status)
notifyRaidEnded in interface RaidIntel.RaidDelegatepublic void startRaid(StarSystemAPI target, float raidFP)
public StarSystemAPI getSystem()
protected java.lang.String pickStationType()
protected Industry getStationIndustry()
protected void updateStationIfNeeded()
public CampaignFleetAPI getAddedListenerTo()
protected void advanceImpl(float amount)
advanceImpl in class BaseIntelPluginprotected void checkForTierChange()
protected PirateBaseIntel.PirateBaseTier getNextTier(PirateBaseIntel.PirateBaseTier tier)
protected PirateBaseIntel.PirateBaseTier getPrevTier(PirateBaseIntel.PirateBaseTier tier)
public void makeKnown()
public void makeKnown(TextPanelAPI text)
public float getTimeRemainingFraction()
IntelInfoPlugingetTimeRemainingFraction in interface IntelInfoPlugingetTimeRemainingFraction in class BaseIntelPluginprotected void notifyEnding()
notifyEnding in class BaseIntelPluginprotected void notifyEnded()
notifyEnded in class BaseIntelPluginpublic 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 boolean runWhilePaused()
runWhilePaused in interface EveryFrameScriptrunWhilePaused in class BaseIntelPluginprotected void addBulletPoints(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
addBulletPoints in class BaseIntelPluginpublic void createIntelInfo(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
createIntelInfo in interface IntelInfoPlugincreateIntelInfo in class BaseIntelPluginpublic java.lang.String getSortString()
getSortString in interface IntelInfoPlugingetSortString in class BaseIntelPluginpublic java.lang.String getName()
getName in class BaseIntelPluginpublic FactionAPI getFactionForUIColors()
getFactionForUIColors in interface IntelInfoPlugingetFactionForUIColors in class BaseIntelPluginpublic java.lang.String getSmallDescriptionTitle()
getSmallDescriptionTitle in interface IntelInfoPlugingetSmallDescriptionTitle in class BaseIntelPluginpublic void createSmallDescription(TooltipMakerAPI info, float width, float height)
createSmallDescription in interface IntelInfoPlugincreateSmallDescription in class BaseIntelPluginpublic java.lang.String getIcon()
IntelInfoPlugingetIcon in interface IntelInfoPlugingetIcon in class BaseIntelPluginpublic java.util.Set<java.lang.String> getIntelTags(SectorMapAPI map)
IntelInfoPlugingetIntelTags in interface IntelInfoPlugingetIntelTags in class BaseIntelPluginpublic SectorEntityToken getMapLocation(SectorMapAPI map)
getMapLocation in interface IntelInfoPlugingetMapLocation in class BaseIntelPluginprotected java.lang.String generateName()
protected java.lang.String pickPostfix()
public void commodityUpdated(java.lang.String commodityId)
commodityUpdated in interface EconomyAPI.EconomyUpdateListenerpublic void economyUpdated()
economyUpdated in interface EconomyAPI.EconomyUpdateListenerpublic boolean isEconomyListenerExpired()
isEconomyListenerExpired in interface EconomyAPI.EconomyUpdateListenerprotected void setBounty()
protected void endBounty()
public void updateTarget()
public StarSystemAPI getTarget()
protected void clearTarget()
public java.util.List<MarketAPI> getAffectedMarkets(StarSystemAPI system)
public boolean affectsMarket(MarketAPI market)
public void setTargetPlayerColoniesOnly(boolean targetPlayerColonies)
public boolean isTargetPlayerColoniesOnly()
public StarSystemAPI getForceTarget()
public void setForceTarget(StarSystemAPI forceTarget)
protected StarSystemAPI pickTarget()
public java.util.List<IntelInfoPlugin.ArrowData> getArrowData(SectorMapAPI map)
getArrowData in interface IntelInfoPlugingetArrowData in class BaseIntelPluginpublic float getAccessibilityPenalty()
public float getStabilityPenalty()
public PirateBaseIntel.PirateBaseTier getTier()
public SectorEntityToken getEntity()
public PersonAPI getBaseCommander()
public void setBaseCommander(PersonAPI baseCommander)