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.TableRowClickData
BULLET, BUTTON_DELETE, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, timestamp
LIST_ITEM_TEXT_WIDTH, NEW_DAYS
Constructor and Description |
---|
PirateBaseIntel(StarSystemAPI system,
java.lang.String factionId,
PirateBaseIntel.PirateBaseTier tier) |
addBulletPoints, addDays, addDays, addDays, addDeleteButton, addDeleteButton, addGenericButton, addGenericButton, 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, getSortTier, getSoundColonyThreat, getSoundLogUpdate, getSoundMajorPosting, getSoundMinorMessage, getSoundStandardPosting, getSoundStandardUpdate, 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, shouldRemoveIntel, storyActionConfirmed, tableRowClicked, unindent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
advance, isDone
public 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 Logger log
protected StarSystemAPI system
protected MarketAPI market
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()
IntelInfoPlugin
isHidden
in interface IntelInfoPlugin
isHidden
in class BaseIntelPlugin
public float getRaidFP()
public float getBaseRaidFP()
public void notifyRaidEnded(RaidIntel raid, RaidIntel.RaidStageStatus status)
notifyRaidEnded
in interface RaidIntel.RaidDelegate
public 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 BaseIntelPlugin
protected 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()
IntelInfoPlugin
getTimeRemainingFraction
in interface IntelInfoPlugin
getTimeRemainingFraction
in class BaseIntelPlugin
protected void notifyEnding()
notifyEnding
in class BaseIntelPlugin
protected void notifyEnded()
notifyEnded
in class BaseIntelPlugin
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, java.lang.Object param)
reportFleetDespawnedToListener
in interface FleetEventListener
public void reportBattleOccurred(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle)
FleetEventListener
reportBattleOccurred
in interface FleetEventListener
public boolean runWhilePaused()
runWhilePaused
in interface EveryFrameScript
runWhilePaused
in class BaseIntelPlugin
protected void addBulletPoints(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
addBulletPoints
in class BaseIntelPlugin
public void createIntelInfo(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
createIntelInfo
in interface IntelInfoPlugin
createIntelInfo
in class BaseIntelPlugin
public java.lang.String getSortString()
getSortString
in interface IntelInfoPlugin
getSortString
in class BaseIntelPlugin
public java.lang.String getName()
getName
in class BaseIntelPlugin
public FactionAPI getFactionForUIColors()
getFactionForUIColors
in interface IntelInfoPlugin
getFactionForUIColors
in class BaseIntelPlugin
public java.lang.String getSmallDescriptionTitle()
getSmallDescriptionTitle
in interface IntelInfoPlugin
getSmallDescriptionTitle
in class BaseIntelPlugin
public void createSmallDescription(TooltipMakerAPI info, float width, float height)
createSmallDescription
in interface IntelInfoPlugin
createSmallDescription
in class BaseIntelPlugin
public java.lang.String getIcon()
IntelInfoPlugin
getIcon
in interface IntelInfoPlugin
getIcon
in class BaseIntelPlugin
public java.util.Set<java.lang.String> getIntelTags(SectorMapAPI map)
IntelInfoPlugin
getIntelTags
in interface IntelInfoPlugin
getIntelTags
in class BaseIntelPlugin
public SectorEntityToken getMapLocation(SectorMapAPI map)
getMapLocation
in interface IntelInfoPlugin
getMapLocation
in class BaseIntelPlugin
protected java.lang.String generateName()
protected java.lang.String pickPostfix()
public void commodityUpdated(java.lang.String commodityId)
commodityUpdated
in interface EconomyAPI.EconomyUpdateListener
public void economyUpdated()
economyUpdated
in interface EconomyAPI.EconomyUpdateListener
public boolean isEconomyListenerExpired()
isEconomyListenerExpired
in interface EconomyAPI.EconomyUpdateListener
public MarketAPI getMarket()
protected 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 IntelInfoPlugin
getArrowData
in class BaseIntelPlugin
public float getAccessibilityPenalty()
public float getStabilityPenalty()
public PirateBaseIntel.PirateBaseTier getTier()
public SectorEntityToken getEntity()
public PersonAPI getBaseCommander()
public void setBaseCommander(PersonAPI baseCommander)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.