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, timestamp
LIST_ITEM_TEXT_WIDTH, NEW_DAYS
Constructor and Description |
---|
LuddicPathCellsIntel(MarketAPI market,
boolean sleeper) |
Modifier and Type | Method and Description |
---|---|
void |
abortIncident() |
protected void |
addBulletPoints(TooltipMakerAPI info,
IntelInfoPlugin.ListInfoMode mode) |
void |
addInterestInfo(TooltipMakerAPI info,
float width,
float height) |
protected void |
advanceImpl(float amount) |
void |
beginIncident() |
boolean |
canMakeVisibleToPlayer(boolean playerInRelayRange)
Only checked if adding using IntelManager.queueIntel().
|
protected boolean |
checkSuccess() |
void |
createIntelInfo(TooltipMakerAPI info,
IntelInfoPlugin.ListInfoMode mode) |
void |
createSmallDescription(TooltipMakerAPI info,
float width,
float height) |
void |
doIncident() |
java.util.List<IntelInfoPlugin.ArrowData> |
getArrowData(SectorMapAPI map) |
static java.util.List<LuddicPathCellsIntel> |
getCellsForBase(LuddicPathBaseIntel base,
boolean includeSleeper) |
static LuddicPathCellsIntel |
getCellsForMarket(MarketAPI market) |
static LuddicPathBaseIntel |
getClosestBase(MarketAPI market) |
java.lang.String |
getCommMessageSound() |
FactionAPI |
getFactionForUIColors() |
java.lang.String |
getIcon()
40x40, no icon if null.
|
float |
getInertiaTime() |
java.util.Set<java.lang.String> |
getIntelTags(SectorMapAPI map)
Method NEEDS to handle map being null gracefully.
|
SectorEntityToken |
getMapLocation(SectorMapAPI map) |
MarketAPI |
getMarket() |
java.lang.String |
getName() |
java.lang.String |
getRouteSourceId() |
float |
getSleeperTimeout() |
java.lang.String |
getSmallDescriptionTitle() |
java.lang.String |
getSortString() |
boolean |
isSleeper() |
void |
makeActiveIfPossible() |
void |
makeSleeper() |
void |
makeSleeper(float sleeperTimeout) |
protected void |
notifyEnded() |
protected void |
notifyEnding() |
void |
prepareIncident() |
void |
reportAboutToBeDespawnedByRouteManager(RouteManager.RouteData route) |
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,
java.lang.Object param) |
protected void |
sendSmuggler(LuddicPathBaseIntel base) |
void |
setInertiaTime(float inertiaTime) |
void |
setSleeper(boolean sleeper) |
void |
setSleeperTimeout(float sleeperTimeout) |
boolean |
shouldCancelRouteAfterDelayCheck(RouteManager.RouteData route) |
boolean |
shouldRepeat(RouteManager.RouteData route) |
CampaignFleetAPI |
spawnFleet(RouteManager.RouteData route) |
addBulletPoints, addDays, addDays, addDays, addDeleteButton, addDeleteButton, addGenericButton, addGenericButton, 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, getSortTier, getSoundColonyThreat, getSoundLogUpdate, getSoundMajorPosting, getSoundMinorMessage, getSoundStandardPosting, getSoundStandardUpdate, 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, shouldRemoveIntel, storyActionConfirmed, tableRowClicked, unindent
public 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 MarketAPI market
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 MarketAPI getMarket()
public boolean canMakeVisibleToPlayer(boolean playerInRelayRange)
IntelInfoPlugin
canMakeVisibleToPlayer
in interface IntelInfoPlugin
canMakeVisibleToPlayer
in class BaseIntelPlugin
protected void notifyEnded()
notifyEnded
in class BaseIntelPlugin
protected void notifyEnding()
notifyEnding
in class BaseIntelPlugin
public void makeSleeper()
public void makeSleeper(float sleeperTimeout)
public void makeActiveIfPossible()
protected void advanceImpl(float amount)
advanceImpl
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 void addInterestInfo(TooltipMakerAPI info, float width, float height)
public void createSmallDescription(TooltipMakerAPI info, float width, float height)
createSmallDescription
in interface IntelInfoPlugin
createSmallDescription
in class BaseIntelPlugin
public java.util.List<IntelInfoPlugin.ArrowData> getArrowData(SectorMapAPI map)
getArrowData
in interface IntelInfoPlugin
getArrowData
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 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 SectorEntityToken getMapLocation(SectorMapAPI map)
getMapLocation
in interface IntelInfoPlugin
getMapLocation
in class BaseIntelPlugin
public java.lang.String getCommMessageSound()
getCommMessageSound
in interface IntelInfoPlugin
getCommMessageSound
in class BaseIntelPlugin
public 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.RouteFleetSpawner
public boolean shouldCancelRouteAfterDelayCheck(RouteManager.RouteData route)
shouldCancelRouteAfterDelayCheck
in interface RouteManager.RouteFleetSpawner
public boolean shouldRepeat(RouteManager.RouteData route)
shouldRepeat
in interface RouteManager.RouteFleetSpawner
public CampaignFleetAPI spawnFleet(RouteManager.RouteData route)
spawnFleet
in interface RouteManager.RouteFleetSpawner
public void reportBattleOccurred(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle)
FleetEventListener
reportBattleOccurred
in interface FleetEventListener
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, java.lang.Object param)
reportFleetDespawnedToListener
in interface FleetEventListener
public float getInertiaTime()
public void setInertiaTime(float inertiaTime)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.