Class RaidIntel
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
com.fs.starfarer.api.impl.campaign.intel.raid.RaidIntel
- All Implemented Interfaces:
IntelInfoPlugin
,EveryFrameScript
,CommRelayEntityPlugin.CommSnifferReadableIntel
,RouteManager.RouteFleetSpawner
,CallEvent.CallableEvent
- Direct Known Subclasses:
HegemonyInspectionIntel
,PunitiveExpeditionIntel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
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 int
protected float
protected RaidIntel.RaidDelegate
static Object
protected float
protected FactionAPI
protected int
protected String
protected String
protected List<RaidIntel.RaidStage>
protected StarSystemAPI
static Object
static Object
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
ConstructorsConstructorDescriptionRaidIntel
(StarSystemAPI system, FactionAPI faction, RaidIntel.RaidDelegate delegate) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
addStage
(RaidIntel.RaidStage stage) void
addStandardStrengthComparisons
(TooltipMakerAPI info, MarketAPI target, FactionAPI targetFaction, boolean withGround, boolean withBombard, String raid, String raids) protected void
advanceImpl
(float amount) boolean
canMakeVisibleToPlayer
(boolean playerInRelayRange) Only checked if adding using IntelManager.queueIntel().createAssignmentAI
(CampaignFleetAPI fleet, RouteManager.RouteData route) createFleet
(String factionId, RouteManager.RouteData route, MarketAPI market, org.lwjgl.util.vector.Vector2f locInHyper, Random random) void
void
createSmallDescription
(TooltipMakerAPI info, float width, float height) protected void
failedAtStage
(RaidIntel.RaidStage stage) void
forceFail
(boolean withUpdate) getArrowData
(SectorMapAPI map) int
float
getETA()
float
int
protected MarketAPI
getIcon()
40x40, no icon if null.getIntelTags
(SectorMapAPI map) Method NEEDS to handle map being null gracefully.getName()
float
float
float
float
float
protected String
int
getStageIndex
(RaidIntel.RaidStage stage) boolean
isFailed()
boolean
boolean
protected void
protected void
void
void
void
setExtraDays
(float extraDays) boolean
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, 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
-
UPDATE_FAILED
-
UPDATE_RETURNING
-
ENTERED_SYSTEM_UPDATE
-
currentStage
protected int currentStage -
failStage
protected int failStage -
stages
-
id
-
sid
-
extraDays
protected float extraDays -
system
-
faction
-
defenderStr
protected float defenderStr -
delegate
-
-
Constructor Details
-
RaidIntel
-
-
Method Details
-
sendEnteredSystemUpdate
public void sendEnteredSystemUpdate() -
getSystem
-
getCurrentStage
public int getCurrentStage() -
getStageIndex
-
getFailStage
public int getFailStage() -
getOrganizeStage
-
getAssembleStage
-
getActionStage
-
addStage
-
getRouteSourceId
-
getExtraDays
public float getExtraDays() -
setExtraDays
public void setExtraDays(float extraDays) -
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:
-
shouldSendUpdate
public boolean shouldSendUpdate() -
isPlayerTargeted
public boolean isPlayerTargeted() -
getCommMessageSound
- Specified by:
getCommMessageSound
in interfaceIntelInfoPlugin
- Overrides:
getCommMessageSound
in classBaseIntelPlugin
-
advanceImpl
protected void advanceImpl(float amount) - Overrides:
advanceImpl
in classBaseIntelPlugin
-
forceFail
public void forceFail(boolean withUpdate) -
failedAtStage
-
notifyEnded
protected void notifyEnded()- Overrides:
notifyEnded
in classBaseIntelPlugin
-
notifyEnding
protected void notifyEnding()- Overrides:
notifyEnding
in classBaseIntelPlugin
-
getETA
public float getETA() -
addBulletPoints
- Overrides:
addBulletPoints
in classBaseIntelPlugin
-
createIntelInfo
- Specified by:
createIntelInfo
in interfaceIntelInfoPlugin
- Overrides:
createIntelInfo
in classBaseIntelPlugin
-
getFirstSource
-
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:
-
getSortString
- Specified by:
getSortString
in interfaceIntelInfoPlugin
- Overrides:
getSortString
in classBaseIntelPlugin
-
getName
- Overrides:
getName
in classBaseIntelPlugin
-
isFailed
public boolean isFailed() -
isSucceeded
public boolean isSucceeded() -
getFactionForUIColors
- Specified by:
getFactionForUIColors
in interfaceIntelInfoPlugin
- Overrides:
getFactionForUIColors
in classBaseIntelPlugin
-
getFaction
-
getSmallDescriptionTitle
- Specified by:
getSmallDescriptionTitle
in interfaceIntelInfoPlugin
- Overrides:
getSmallDescriptionTitle
in classBaseIntelPlugin
-
getMapLocation
- Specified by:
getMapLocation
in interfaceIntelInfoPlugin
- Overrides:
getMapLocation
in classBaseIntelPlugin
-
getArrowData
- Specified by:
getArrowData
in interfaceIntelInfoPlugin
- Overrides:
getArrowData
in classBaseIntelPlugin
-
shouldCancelRouteAfterDelayCheck
- Specified by:
shouldCancelRouteAfterDelayCheck
in interfaceRouteManager.RouteFleetSpawner
-
shouldRepeat
- Specified by:
shouldRepeat
in interfaceRouteManager.RouteFleetSpawner
-
reportAboutToBeDespawnedByRouteManager
- Specified by:
reportAboutToBeDespawnedByRouteManager
in interfaceRouteManager.RouteFleetSpawner
-
spawnFleet
- Specified by:
spawnFleet
in interfaceRouteManager.RouteFleetSpawner
-
createAssignmentAI
public RouteFleetAssignmentAI createAssignmentAI(CampaignFleetAPI fleet, RouteManager.RouteData route) -
createFleet
public CampaignFleetAPI createFleet(String factionId, RouteManager.RouteData route, MarketAPI market, org.lwjgl.util.vector.Vector2f locInHyper, Random random) -
getRaidFPAdjusted
public float getRaidFPAdjusted() -
getRaidFP
public float getRaidFP() -
getNumFleets
public float getNumFleets() -
getOrigNumFleets
public float getOrigNumFleets() -
getRaidStr
public float getRaidStr() -
getRaidStrDesc
-
addStandardStrengthComparisons
public void addStandardStrengthComparisons(TooltipMakerAPI info, MarketAPI target, FactionAPI targetFaction, boolean withGround, boolean withBombard, String raid, String raids) -
getSortTier
- Specified by:
getSortTier
in interfaceIntelInfoPlugin
- Overrides:
getSortTier
in classBaseIntelPlugin
-