Class BaseMissionIntel
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
com.fs.starfarer.api.impl.campaign.intel.BaseMissionIntel
- All Implemented Interfaces:
IntelInfoPlugin
,EveryFrameScript
,CommRelayEntityPlugin.CommSnifferReadableIntel
,CallEvent.CallableEvent
- Direct Known Subclasses:
AnalyzeEntityMissionIntel
,DeliveryMissionIntel
,FactionCommissionIntel
,ProcurementMissionIntel
,SurveyPlanetMissionIntel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
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 TypeFieldDescriptionstatic String
static String
protected Float
protected float
protected BaseMissionIntel.MissionResult
protected BaseMissionIntel.MissionState
protected IntervalUtil
protected Float
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
addAbandonButton
(TooltipMakerAPI info, float width) protected void
addAbandonButton
(TooltipMakerAPI info, float width, String abandon) protected void
addAcceptButton
(TooltipMakerAPI info, float width) protected void
addAcceptButton
(TooltipMakerAPI info, float width, String accept) protected void
addAcceptOrAbandonButton
(TooltipMakerAPI info, float width) protected void
addAcceptOrAbandonButton
(TooltipMakerAPI info, float width, String accept, String abandon) protected void
void
advanceImpl
(float amount) abstract void
advanceMission
(float amount) void
buttonPressConfirmed
(Object buttonId, IntelUIAPI ui) boolean
protected void
cancel()
protected abstract BaseMissionIntel.MissionResult
createAbandonedResult
(boolean withPenalty) protected BaseMissionIntel.MissionResult
void
createConfirmationPrompt
(Object buttonId, TooltipMakerAPI prompt) protected abstract BaseMissionIntel.MissionResult
boolean
doesButtonHaveConfirmDialog
(Object buttonId) abstract void
float
20x20, if null will use default.getIntelTags
(SectorMapAPI map) Method NEEDS to handle map being null gracefully.protected String
protected float
float
Should return 0 if the concept doesn't apply.protected void
protected void
initRandomCancel
(float prob) boolean
boolean
boolean
boolean
boolean
isFailed()
boolean
isPosted()
abstract void
void
setDuration
(Float duration) void
setElapsedDays
(float elapsedDays) void
setMissionResult
(BaseMissionIntel.MissionResult missionResult) void
setMissionState
(BaseMissionIntel.MissionState missionState) boolean
Methods inherited from class com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
addBulletPoints, addBulletPoints, addDays, addDays, addDays, addDays, addDeleteButton, addDeleteButton, addGenericButton, addGenericButton, addLogTimestamp, addMarketTable, addMarketToList, addMarketToList, advance, autoAddCampaignMessage, bullet, buttonPressCancelled, callEvent, canMakeVisible, canMakeVisibleToCommSniffer, canMakeVisibleToPlayer, canTurnImportantOff, createDeleteConfirmationPrompt, createIntelInfo, createLargeDescription, createSmallDescription, endAfterDelay, endAfterDelay, endImmediately, forceAddNextFrame, getArrowData, getBackgroundGlowColor, getBaseDaysAfterEnd, getBulletColorForMode, getButtonStoryPointActionDelegate, getCancelText, getCircleBorderColorOverride, getCommMessageSound, getCommRelayRange, getConfirmationPromptWidth, getConfirmText, getDays, getDaysSincePlayerVisible, getDaysString, getFactionForUIColors, getIcon, getListInfoParam, getMapLocation, getName, getPlayerVisibleTimestamp, getPostingLocation, getPostingRangeLY, getSmallDescriptionTitle, getSortString, getSortStringNewestFirst, getSortStringNewestFirst, getSortTier, getSoundColonyThreat, getSoundLogUpdate, getSoundMajorPosting, getSoundMinorMessage, getSoundStandardPosting, getSoundStandardUpdate, getTagsForSort, getTitleColor, hasImportantButton, hasLargeDescription, hasSmallDescription, indent, isDone, isEnded, isEnding, isHidden, isImportant, isNew, isPlayerVisible, isSendingUpdate, notifyEnded, notifyEnding, notifyPlayerAboutToOpenIntelScreen, reportMadeVisibleToPlayer, reportPlayerClickedOn, reportRemovedIntel, runWhilePaused, sendUpdate, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, setForceAddNextFrame, setHidden, setImportant, setListInfoParam, setNew, setPlayerVisibleTimestamp, setPostingLocation, setPostingRangeLY, setPostingRangeLY, setTagsForSort, storyActionConfirmed, tableRowClicked, unindent
-
Field Details
-
BUTTON_ACCEPT
-
BUTTON_ABANDON
-
randomCancel
-
randomCancelProb
-
missionResult
-
missionState
-
duration
-
elapsedDays
protected float elapsedDays
-
-
Constructor Details
-
BaseMissionIntel
public BaseMissionIntel()
-
-
Method Details
-
initRandomCancel
protected void initRandomCancel() -
initRandomCancel
protected void initRandomCancel(float prob) -
cancel
protected void cancel() -
advanceImpl
public void advanceImpl(float amount) - Overrides:
advanceImpl
in classBaseIntelPlugin
-
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:
-
isPosted
public boolean isPosted() -
isCancelled
public boolean isCancelled() -
isFailed
public boolean isFailed() -
isCompleted
public boolean isCompleted() -
isAccepted
public boolean isAccepted() -
isAbandoned
public boolean isAbandoned() -
canAbandonWithoutPenalty
public boolean canAbandonWithoutPenalty() -
getNoPenaltyAbandonDays
protected float getNoPenaltyAbandonDays() -
getImportantIcon
Description copied from interface:IntelInfoPlugin
20x20, if null will use default.- Specified by:
getImportantIcon
in interfaceIntelInfoPlugin
- Overrides:
getImportantIcon
in classBaseIntelPlugin
- Returns:
-
endMission
public abstract void endMission() -
advanceMission
public abstract void advanceMission(float amount) -
missionAccepted
public abstract void missionAccepted() -
createTimeRanOutFailedResult
-
createAbandonedResult
-
createCancelledResult
-
getMissionTypeNoun
-
buttonPressConfirmed
- Specified by:
buttonPressConfirmed
in interfaceIntelInfoPlugin
- Overrides:
buttonPressConfirmed
in classBaseIntelPlugin
-
createConfirmationPrompt
- Specified by:
createConfirmationPrompt
in interfaceIntelInfoPlugin
- Overrides:
createConfirmationPrompt
in classBaseIntelPlugin
-
doesButtonHaveConfirmDialog
- Specified by:
doesButtonHaveConfirmDialog
in interfaceIntelInfoPlugin
- Overrides:
doesButtonHaveConfirmDialog
in classBaseIntelPlugin
-
getIntelTags
Description copied from interface:IntelInfoPlugin
Method NEEDS to handle map being null gracefully.- Specified by:
getIntelTags
in interfaceIntelInfoPlugin
- Overrides:
getIntelTags
in classBaseIntelPlugin
- Returns:
-
addGenericMissionState
-
getPostfixForState
-
addAcceptOrAbandonButton
-
addAcceptOrAbandonButton
protected void addAcceptOrAbandonButton(TooltipMakerAPI info, float width, String accept, String abandon) -
addAcceptButton
-
addAcceptButton
-
addAbandonButton
-
addAbandonButton
-
getMissionResult
-
setMissionResult
-
getMissionState
-
setMissionState
-
getDuration
-
setDuration
-
getElapsedDays
public float getElapsedDays() -
setElapsedDays
public void setElapsedDays(float elapsedDays) -
shouldRemoveIntel
public boolean shouldRemoveIntel()- Specified by:
shouldRemoveIntel
in interfaceIntelInfoPlugin
- Overrides:
shouldRemoveIntel
in classBaseIntelPlugin
-