Class LuddicPathBaseIntel
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
com.fs.starfarer.api.impl.campaign.intel.bases.LuddicPathBaseIntel
- All Implemented Interfaces:
IntelInfoPlugin
,EconomyAPI.EconomyUpdateListener
,FleetEventListener
,EveryFrameScript
,CommRelayEntityPlugin.CommSnifferReadableIntel
,RaidIntel.RaidDelegate
,CallEvent.CallableEvent
public class LuddicPathBaseIntel
extends BaseIntelPlugin
implements EveryFrameScript, FleetEventListener, EconomyAPI.EconomyUpdateListener, RaidIntel.RaidDelegate
-
Nested Class Summary
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
protected float
protected float
protected SectorEntityToken
protected boolean
static org.apache.log4j.Logger
protected MarketAPI
static String
protected IntervalUtil
protected int
static final String
protected Random
protected PersonBountyIntel.BountyResult
protected boolean
protected StarSystemAPI
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 TypeMethodDescriptionprotected void
protected void
advanceImpl
(float amount) void
commodityUpdated
(String commodityId) void
void
createSmallDescription
(TooltipMakerAPI info, float width, float height) void
protected void
protected String
getArrowData
(SectorMapAPI map) getIcon()
40x40, no icon if null.static LuddicPathBaseIntel
getIntelFor
(MarketAPI market) static LuddicPathBaseIntel
getIntelFor
(StarSystemAPI system) getIntelTags
(SectorMapAPI map) Method NEEDS to handle map being null gracefully.getName()
protected Industry
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
isLarge()
void
void
makeKnown
(TextPanelAPI text) protected void
protected void
void
notifyRaidEnded
(RaidIntel raid, RaidIntel.RaidStageStatus status) protected String
pickStationType
(boolean large) 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
protected void
updateStationIfNeeded
(boolean large) 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
-
PATHER_BASE_COMMANDER
- See Also:
-
MEM_FLAG
-
BOUNTY_EXPIRED_PARAM
-
DISCOVERED_PARAM
-
log
public static org.apache.log4j.Logger log -
baseCommander
-
system
-
market
-
entity
-
elapsedDays
protected float elapsedDays -
duration
protected float duration -
bountyData
-
monthlyInterval
-
monthsNoBounty
protected int monthsNoBounty -
large
protected boolean large -
random
-
addedListenerTo
-
result
-
sentBountyUpdate
protected boolean sentBountyUpdate
-
-
Constructor Details
-
LuddicPathBaseIntel
-
-
Method Details
-
getIntelFor
-
getIntelFor
-
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:
-
notifyRaidEnded
- Specified by:
notifyRaidEnded
in interfaceRaidIntel.RaidDelegate
-
getSystem
-
pickStationType
-
getStationIndustry
-
updateStationIfNeeded
protected void updateStationIfNeeded(boolean large) -
advanceImpl
protected void advanceImpl(float amount) - Overrides:
advanceImpl
in classBaseIntelPlugin
-
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
-
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() -
getArrowData
- Specified by:
getArrowData
in interfaceIntelInfoPlugin
- Overrides:
getArrowData
in classBaseIntelPlugin
-
getEntity
-
isLarge
public boolean isLarge() -
getBaseCommander
-
setBaseCommander
-