Class PirateBaseIntel
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
com.fs.starfarer.api.impl.campaign.intel.bases.PirateBaseIntel
- All Implemented Interfaces:
IntelInfoPlugin
,EconomyAPI.EconomyUpdateListener
,FleetEventListener
,EveryFrameScript
,CommRelayEntityPlugin.CommSnifferReadableIntel
,RaidIntel.RaidDelegate
,CallEvent.CallableEvent
public class PirateBaseIntel
extends BaseIntelPlugin
implements EveryFrameScript, FleetEventListener, EconomyAPI.EconomyUpdateListener, RaidIntel.RaidDelegate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
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 CampaignFleetAPI
protected PersonAPI
static Object
protected PirateBaseIntel.BaseBountyData
static Object
static Object
static Object
static Object
protected float
protected float
protected SectorEntityToken
protected StarSystemAPI
static final String
static org.apache.log4j.Logger
protected MarketAPI
protected PirateBaseIntel.PirateBaseTier
static String
protected IntervalUtil
protected int
protected int
static final String
protected int
protected PersonBountyIntel.BountyResult
protected boolean
protected StarSystemAPI
protected StarSystemAPI
protected boolean
protected PirateBaseIntel.PirateBaseTier
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
ConstructorsConstructorDescriptionPirateBaseIntel
(StarSystemAPI system, String factionId, PirateBaseIntel.PirateBaseTier tier) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
advanceImpl
(float amount) boolean
affectsMarket
(MarketAPI market) protected void
protected void
void
commodityUpdated
(String commodityId) void
void
createSmallDescription
(TooltipMakerAPI info, float width, float height) void
protected void
protected String
float
getAffectedMarkets
(StarSystemAPI system) getArrowData
(SectorMapAPI map) float
getIcon()
40x40, no icon if null.static PirateBaseIntel
getIntelFor
(MarketAPI market) static PirateBaseIntel
getIntelFor
(SectorEntityToken station) static PirateBaseIntel
getIntelFor
(StarSystemAPI system) getIntelTags
(SectorMapAPI map) Method NEEDS to handle map being null gracefully.getName()
protected PirateBaseIntel.PirateBaseTier
protected PirateBaseIntel.PirateBaseTier
float
float
protected Industry
getTier()
float
Should return 0 if the concept doesn't apply.boolean
boolean
isHidden()
Whether to actually show this piece of intel in the intel screen/show messages or updates for it, despite it being technically known to the player.boolean
void
void
makeKnown
(TextPanelAPI text) protected void
protected void
void
notifyRaidEnded
(RaidIntel raid, RaidIntel.RaidStageStatus status) protected String
protected String
protected StarSystemAPI
boolean
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
reportFleetDespawnedToListener
(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, Object param) boolean
void
setBaseCommander
(PersonAPI baseCommander) protected void
void
setForceTarget
(StarSystemAPI forceTarget) void
setPlayerHasDealWithBaseCommander
(boolean hasDeal) void
setTargetPlayerColoniesOnly
(boolean targetPlayerColonies) void
startRaid
(StarSystemAPI target, float raidFP) protected void
void
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, 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, unindent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fs.starfarer.api.EveryFrameScript
advance, isDone
-
Field Details
-
PIRATE_BASE_COMMANDER
- See Also:
-
HAS_DEAL_WITH_BASE_COMMANDER
- See Also:
-
MEM_FLAG
-
DEAL_MADE_PARAM
-
DEAL_BROKEN_PARAM
-
DEAL_CANCELLED_PARAM
-
BOUNTY_EXPIRED_PARAM
-
DISCOVERED_PARAM
-
log
public static org.apache.log4j.Logger log -
system
-
market
-
baseCommander
-
entity
-
elapsedDays
protected float elapsedDays -
duration
protected float duration -
bountyData
-
tier
-
matchedStationToTier
-
monthlyInterval
-
raidTimeoutMonths
protected int raidTimeoutMonths -
addedListenerTo
-
result
-
sentBountyUpdate
protected boolean sentBountyUpdate -
monthsWithSameTarget
protected int monthsWithSameTarget -
monthsAtCurrentTier
protected int monthsAtCurrentTier -
target
-
targetPlayerColoniesOnly
protected boolean targetPlayerColoniesOnly -
forceTarget
-
-
Constructor Details
-
PirateBaseIntel
-
-
Method Details
-
getIntelFor
-
getIntelFor
-
getIntelFor
-
playerHasDealWithBaseCommander
public boolean playerHasDealWithBaseCommander() -
setPlayerHasDealWithBaseCommander
public void setPlayerHasDealWithBaseCommander(boolean hasDeal) -
isHidden
public boolean isHidden()Description copied from interface:IntelInfoPlugin
Whether to actually show this piece of intel in the intel screen/show messages or updates for it, despite it being technically known to the player. Something can have "reportMadeVisibleToPlayer" called on it but still be hidden.- Specified by:
isHidden
in interfaceIntelInfoPlugin
- Overrides:
isHidden
in classBaseIntelPlugin
- Returns:
-
getRaidFP
public float getRaidFP() -
getBaseRaidFP
public float getBaseRaidFP() -
notifyRaidEnded
- Specified by:
notifyRaidEnded
in interfaceRaidIntel.RaidDelegate
-
startRaid
-
getSystem
-
pickStationType
-
getStationIndustry
-
updateStationIfNeeded
protected void updateStationIfNeeded() -
getAddedListenerTo
-
advanceImpl
protected void advanceImpl(float amount) - Overrides:
advanceImpl
in classBaseIntelPlugin
-
checkForTierChange
protected void checkForTierChange() -
getNextTier
-
getPrevTier
-
makeKnown
public void makeKnown() -
makeKnown
-
getTimeRemainingFraction
public float getTimeRemainingFraction()Description copied from interface:IntelInfoPlugin
Should return 0 if the concept doesn't apply.- Specified by:
getTimeRemainingFraction
in interfaceIntelInfoPlugin
- Overrides:
getTimeRemainingFraction
in classBaseIntelPlugin
- Returns:
-
notifyEnding
protected void notifyEnding()- Overrides:
notifyEnding
in classBaseIntelPlugin
-
notifyEnded
protected void notifyEnded()- Overrides:
notifyEnded
in classBaseIntelPlugin
-
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
-
runWhilePaused
public boolean runWhilePaused()- Specified by:
runWhilePaused
in interfaceEveryFrameScript
- Overrides:
runWhilePaused
in classBaseIntelPlugin
- Returns:
- whether advance() should be called while the campaign engine is paused.
-
addBulletPoints
- Overrides:
addBulletPoints
in classBaseIntelPlugin
-
createIntelInfo
- Specified by:
createIntelInfo
in interfaceIntelInfoPlugin
- Overrides:
createIntelInfo
in classBaseIntelPlugin
-
getSortString
- Specified by:
getSortString
in interfaceIntelInfoPlugin
- Overrides:
getSortString
in classBaseIntelPlugin
-
getName
- Overrides:
getName
in classBaseIntelPlugin
-
getFactionForUIColors
- Specified by:
getFactionForUIColors
in interfaceIntelInfoPlugin
- Overrides:
getFactionForUIColors
in classBaseIntelPlugin
-
getSmallDescriptionTitle
- Specified by:
getSmallDescriptionTitle
in interfaceIntelInfoPlugin
- Overrides:
getSmallDescriptionTitle
in classBaseIntelPlugin
-
createSmallDescription
- Specified by:
createSmallDescription
in interfaceIntelInfoPlugin
- Overrides:
createSmallDescription
in classBaseIntelPlugin
-
getIcon
Description copied from interface:IntelInfoPlugin
40x40, no icon if null.- Specified by:
getIcon
in interfaceIntelInfoPlugin
- Overrides:
getIcon
in classBaseIntelPlugin
- Returns:
-
getIntelTags
Description copied from interface:IntelInfoPlugin
Method NEEDS to handle map being null gracefully.- Specified by:
getIntelTags
in interfaceIntelInfoPlugin
- Overrides:
getIntelTags
in classBaseIntelPlugin
- Returns:
-
getMapLocation
- Specified by:
getMapLocation
in interfaceIntelInfoPlugin
- Overrides:
getMapLocation
in classBaseIntelPlugin
-
generateName
-
pickPostfix
-
commodityUpdated
- Specified by:
commodityUpdated
in interfaceEconomyAPI.EconomyUpdateListener
-
economyUpdated
public void economyUpdated()- Specified by:
economyUpdated
in interfaceEconomyAPI.EconomyUpdateListener
-
isEconomyListenerExpired
public boolean isEconomyListenerExpired()- Specified by:
isEconomyListenerExpired
in interfaceEconomyAPI.EconomyUpdateListener
-
getMarket
-
setBounty
protected void setBounty() -
endBounty
protected void endBounty() -
updateTarget
public void updateTarget() -
getTarget
-
clearTarget
protected void clearTarget() -
getAffectedMarkets
-
affectsMarket
-
setTargetPlayerColoniesOnly
public void setTargetPlayerColoniesOnly(boolean targetPlayerColonies) -
isTargetPlayerColoniesOnly
public boolean isTargetPlayerColoniesOnly() -
getForceTarget
-
setForceTarget
-
pickTarget
-
getArrowData
- Specified by:
getArrowData
in interfaceIntelInfoPlugin
- Overrides:
getArrowData
in classBaseIntelPlugin
-
getAccessibilityPenalty
public float getAccessibilityPenalty() -
getStabilityPenalty
public float getStabilityPenalty() -
getTier
-
getEntity
-
getBaseCommander
-
setBaseCommander
-