public class LuddicPathCellsIntel extends BaseIntelPlugin implements RouteManager.RouteFleetSpawner, FleetEventListener
| Modifier and Type | Class and Description |
|---|---|
static class |
LuddicPathCellsIntel.IncidentType |
IntelInfoPlugin.ArrowData, IntelInfoPlugin.IntelSortTier, IntelInfoPlugin.ListInfoMode, IntelInfoPlugin.TableRowClickData| Modifier and Type | Field and Description |
|---|---|
static java.lang.Object |
INCIDENT_HAPPENED |
static java.lang.Object |
INCIDENT_PREP |
static java.lang.Object |
INCIDENT_PREVENTED |
static float |
INCIDENT_PROB |
protected float |
incidentDelay |
protected IntervalUtil |
incidentTracker |
protected LuddicPathCellsIntel.IncidentType |
incidentType |
protected float |
inertiaTime |
protected MarketAPI |
market |
static float |
MAX_SABOTAGE |
static float |
MIN_SABOTAGE |
static float |
MIN_WARNING_DAYS |
protected int |
numIncidentAttempts |
protected LuddicPathCellsIntel.IncidentType |
prevIncident |
protected java.lang.Object |
prevIncidentData |
protected boolean |
prevIncidentSucceeded |
protected java.util.Random |
random |
protected float |
sincePrevIncident |
protected boolean |
sleeper |
protected float |
sleeperTimeout |
protected RouteManager.RouteData |
smuggler |
static java.lang.Object |
UPDATE_DISRUPTED |
static java.lang.Object |
UPDATE_DISSOLVED |
static java.lang.String |
USED_PLANETBUSTER_KEY |
BULLET, BUTTON_DELETE, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, tagsForSort, timestampLIST_ITEM_TEXT_WIDTH, NEW_DAYS| Constructor and Description |
|---|
LuddicPathCellsIntel(MarketAPI market,
boolean sleeper) |
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, unindentpublic static java.lang.String USED_PLANETBUSTER_KEY
public static float INCIDENT_PROB
public static float MIN_WARNING_DAYS
public static float MIN_SABOTAGE
public static float MAX_SABOTAGE
public static java.lang.Object UPDATE_DISSOLVED
public static java.lang.Object UPDATE_DISRUPTED
public static java.lang.Object INCIDENT_PREP
public static java.lang.Object INCIDENT_PREVENTED
public static java.lang.Object INCIDENT_HAPPENED
protected boolean sleeper
protected float sleeperTimeout
protected IntervalUtil incidentTracker
protected java.util.Random random
protected int numIncidentAttempts
protected float incidentDelay
protected LuddicPathCellsIntel.IncidentType incidentType
protected RouteManager.RouteData smuggler
protected LuddicPathCellsIntel.IncidentType prevIncident
protected boolean prevIncidentSucceeded
protected float sincePrevIncident
protected java.lang.Object prevIncidentData
protected float inertiaTime
public LuddicPathCellsIntel(MarketAPI market, boolean sleeper)
public static LuddicPathBaseIntel getClosestBase(MarketAPI market)
public static java.util.List<LuddicPathCellsIntel> getCellsForBase(LuddicPathBaseIntel base, boolean includeSleeper)
public static LuddicPathCellsIntel getCellsForMarket(MarketAPI market)
public boolean canMakeVisibleToPlayer(boolean playerInRelayRange)
IntelInfoPlugincanMakeVisibleToPlayer in interface IntelInfoPlugincanMakeVisibleToPlayer in class BaseIntelPluginprotected void notifyEnded()
notifyEnded in class BaseIntelPluginprotected void notifyEnding()
notifyEnding in class BaseIntelPluginpublic void makeSleeper()
public void makeSleeper(float sleeperTimeout)
public void makeActiveIfPossible()
protected void advanceImpl(float amount)
advanceImpl 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 void addInterestInfo(TooltipMakerAPI info, float width, float height)
public void createSmallDescription(TooltipMakerAPI info, float width, float height)
createSmallDescription in interface IntelInfoPlugincreateSmallDescription in class BaseIntelPluginpublic java.util.List<IntelInfoPlugin.ArrowData> getArrowData(SectorMapAPI map)
getArrowData in interface IntelInfoPlugingetArrowData 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 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 SectorEntityToken getMapLocation(SectorMapAPI map)
getMapLocation in interface IntelInfoPlugingetMapLocation in class BaseIntelPluginpublic java.lang.String getCommMessageSound()
getCommMessageSound in interface IntelInfoPlugingetCommMessageSound in class BaseIntelPluginpublic boolean isSleeper()
public void setSleeper(boolean sleeper)
public float getSleeperTimeout()
public void setSleeperTimeout(float sleeperTimeout)
public java.lang.String getRouteSourceId()
public void prepareIncident()
public void beginIncident()
public void abortIncident()
protected boolean checkSuccess()
public void doIncident()
protected void sendSmuggler(LuddicPathBaseIntel base)
public void reportAboutToBeDespawnedByRouteManager(RouteManager.RouteData route)
reportAboutToBeDespawnedByRouteManager in interface RouteManager.RouteFleetSpawnerpublic boolean shouldCancelRouteAfterDelayCheck(RouteManager.RouteData route)
shouldCancelRouteAfterDelayCheck in interface RouteManager.RouteFleetSpawnerpublic boolean shouldRepeat(RouteManager.RouteData route)
shouldRepeat in interface RouteManager.RouteFleetSpawnerpublic CampaignFleetAPI spawnFleet(RouteManager.RouteData route)
spawnFleet in interface RouteManager.RouteFleetSpawnerpublic void reportBattleOccurred(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle)
FleetEventListenerreportBattleOccurred in interface FleetEventListenerpublic void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, java.lang.Object param)
reportFleetDespawnedToListener in interface FleetEventListenerpublic float getInertiaTime()
public void setInertiaTime(float inertiaTime)