Class LuddicPathCellsIntel
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
com.fs.starfarer.api.impl.campaign.intel.bases.LuddicPathCellsIntel
- All Implemented Interfaces:
IntelInfoPlugin
,FleetEventListener
,EveryFrameScript
,CommRelayEntityPlugin.CommSnifferReadableIntel
,RouteManager.RouteFleetSpawner
,CallEvent.CallableEvent
public class LuddicPathCellsIntel
extends BaseIntelPlugin
implements RouteManager.RouteFleetSpawner, FleetEventListener
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.fs.starfarer.api.campaign.comm.IntelInfoPlugin
IntelInfoPlugin.ArrowData, IntelInfoPlugin.IntelSortTier, IntelInfoPlugin.ListInfoMode, IntelInfoPlugin.TableRowClickData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Object
static Object
static Object
static float
protected float
protected IntervalUtil
protected LuddicPathCellsIntel.IncidentType
protected float
protected MarketAPI
static float
static float
static float
protected int
protected LuddicPathCellsIntel.IncidentType
protected Object
protected boolean
protected Random
protected float
protected boolean
protected float
protected RouteManager.RouteData
static Object
static Object
static String
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 TypeMethodDescriptionvoid
protected void
void
addInterestInfo
(TooltipMakerAPI info, float width, float height) protected void
advanceImpl
(float amount) void
boolean
canMakeVisibleToPlayer
(boolean playerInRelayRange) Only checked if adding using IntelManager.queueIntel().protected boolean
void
void
createSmallDescription
(TooltipMakerAPI info, float width, float height) void
getArrowData
(SectorMapAPI map) static List<LuddicPathCellsIntel>
getCellsForBase
(LuddicPathBaseIntel base, boolean includeSleeper) static LuddicPathCellsIntel
getCellsForMarket
(MarketAPI market) static LuddicPathBaseIntel
getClosestBase
(MarketAPI market) getIcon()
40x40, no icon if null.float
getIntelTags
(SectorMapAPI map) Method NEEDS to handle map being null gracefully.getName()
float
boolean
void
void
void
makeSleeper
(float sleeperTimeout) protected void
protected void
void
void
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) protected void
void
setInertiaTime
(float inertiaTime) void
setSleeper
(boolean sleeper) void
setSleeperTimeout
(float sleeperTimeout) boolean
boolean
spawnFleet
(RouteManager.RouteData route) 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, canTurnImportantOff, createConfirmationPrompt, createDeleteConfirmationPrompt, createLargeDescription, doesButtonHaveConfirmDialog, endAfterDelay, endAfterDelay, endImmediately, forceAddNextFrame, getBackgroundGlowColor, getBaseDaysAfterEnd, getBulletColorForMode, getButtonStoryPointActionDelegate, getCancelText, getCircleBorderColorOverride, getCommRelayRange, getConfirmationPromptWidth, getConfirmText, getDays, getDaysSincePlayerVisible, getDaysString, getImportantIcon, getListInfoParam, getPlayerVisibleTimestamp, getPostingLocation, getPostingRangeLY, getSortStringNewestFirst, getSortStringNewestFirst, getSortTier, getSoundColonyThreat, getSoundLogUpdate, getSoundMajorPosting, getSoundMinorMessage, getSoundStandardPosting, getSoundStandardUpdate, getTagsForSort, getTimeRemainingFraction, getTitleColor, hasImportantButton, hasLargeDescription, hasSmallDescription, 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, storyActionConfirmed, tableRowClicked, unindent
-
Field Details
-
USED_PLANETBUSTER_KEY
-
INCIDENT_PROB
public static float INCIDENT_PROB -
MIN_WARNING_DAYS
public static float MIN_WARNING_DAYS -
MIN_SABOTAGE
public static float MIN_SABOTAGE -
MAX_SABOTAGE
public static float MAX_SABOTAGE -
UPDATE_DISSOLVED
-
UPDATE_DISRUPTED
-
INCIDENT_PREP
-
INCIDENT_PREVENTED
-
INCIDENT_HAPPENED
-
sleeper
protected boolean sleeper -
sleeperTimeout
protected float sleeperTimeout -
market
-
incidentTracker
-
random
-
numIncidentAttempts
protected int numIncidentAttempts -
incidentDelay
protected float incidentDelay -
incidentType
-
smuggler
-
prevIncident
-
prevIncidentSucceeded
protected boolean prevIncidentSucceeded -
sincePrevIncident
protected float sincePrevIncident -
prevIncidentData
-
inertiaTime
protected float inertiaTime
-
-
Constructor Details
-
LuddicPathCellsIntel
-
-
Method Details
-
getClosestBase
-
getCellsForBase
public static List<LuddicPathCellsIntel> getCellsForBase(LuddicPathBaseIntel base, boolean includeSleeper) -
getCellsForMarket
-
getMarket
-
canMakeVisibleToPlayer
public boolean canMakeVisibleToPlayer(boolean playerInRelayRange) Description copied from interface:IntelInfoPlugin
Only checked if adding using IntelManager.queueIntel(). addIntel() bypasses this and all other checks.- Specified by:
canMakeVisibleToPlayer
in interfaceIntelInfoPlugin
- Overrides:
canMakeVisibleToPlayer
in classBaseIntelPlugin
- Returns:
-
notifyEnded
protected void notifyEnded()- Overrides:
notifyEnded
in classBaseIntelPlugin
-
notifyEnding
protected void notifyEnding()- Overrides:
notifyEnding
in classBaseIntelPlugin
-
makeSleeper
public void makeSleeper() -
makeSleeper
public void makeSleeper(float sleeperTimeout) -
makeActiveIfPossible
public void makeActiveIfPossible() -
advanceImpl
protected void advanceImpl(float amount) - Overrides:
advanceImpl
in classBaseIntelPlugin
-
addBulletPoints
- Overrides:
addBulletPoints
in classBaseIntelPlugin
-
createIntelInfo
- Specified by:
createIntelInfo
in interfaceIntelInfoPlugin
- Overrides:
createIntelInfo
in classBaseIntelPlugin
-
addInterestInfo
-
createSmallDescription
- Specified by:
createSmallDescription
in interfaceIntelInfoPlugin
- Overrides:
createSmallDescription
in classBaseIntelPlugin
-
getArrowData
- Specified by:
getArrowData
in interfaceIntelInfoPlugin
- Overrides:
getArrowData
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:
-
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
-
getMapLocation
- Specified by:
getMapLocation
in interfaceIntelInfoPlugin
- Overrides:
getMapLocation
in classBaseIntelPlugin
-
getCommMessageSound
- Specified by:
getCommMessageSound
in interfaceIntelInfoPlugin
- Overrides:
getCommMessageSound
in classBaseIntelPlugin
-
isSleeper
public boolean isSleeper() -
setSleeper
public void setSleeper(boolean sleeper) -
getSleeperTimeout
public float getSleeperTimeout() -
setSleeperTimeout
public void setSleeperTimeout(float sleeperTimeout) -
getRouteSourceId
-
prepareIncident
public void prepareIncident() -
beginIncident
public void beginIncident() -
abortIncident
public void abortIncident() -
checkSuccess
protected boolean checkSuccess() -
doIncident
public void doIncident() -
sendSmuggler
-
reportAboutToBeDespawnedByRouteManager
- Specified by:
reportAboutToBeDespawnedByRouteManager
in interfaceRouteManager.RouteFleetSpawner
-
shouldCancelRouteAfterDelayCheck
- Specified by:
shouldCancelRouteAfterDelayCheck
in interfaceRouteManager.RouteFleetSpawner
-
shouldRepeat
- Specified by:
shouldRepeat
in interfaceRouteManager.RouteFleetSpawner
-
spawnFleet
- Specified by:
spawnFleet
in interfaceRouteManager.RouteFleetSpawner
-
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
-
reportFleetDespawnedToListener
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, Object param) - Specified by:
reportFleetDespawnedToListener
in interfaceFleetEventListener
-
getInertiaTime
public float getInertiaTime() -
setInertiaTime
public void setInertiaTime(float inertiaTime)
-