Class BaseHistorianOffer
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
com.fs.starfarer.api.impl.campaign.intel.bar.events.historian.BaseHistorianOffer
- All Implemented Interfaces:
IntelInfoPlugin
,EveryFrameScript
,CommRelayEntityPlugin.CommSnifferReadableIntel
,HistorianData.HistorianOffer
,CallEvent.CallableEvent
- Direct Known Subclasses:
BaseHistorianOfferWithLocation
,DonationOffer
-
Nested Class Summary
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 HistorianData.HistorianOfferCreator
protected InteractionDialogAPI
protected boolean
protected boolean
protected OptionPanelAPI
protected boolean
protected TextPanelAPI
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
getIcon()
40x40, no icon if null.int
void
init
(InteractionDialogAPI dialog) boolean
void
void
optionSelected
(String optionText, Object optionData) void
void
setDone
(boolean done) void
setEndConversationOnReturning
(boolean endConversationOnReturning) void
setRemove
(boolean remove) boolean
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, advanceImpl, autoAddCampaignMessage, bullet, buttonPressCancelled, buttonPressConfirmed, callEvent, canMakeVisible, canMakeVisibleToCommSniffer, canMakeVisibleToPlayer, canTurnImportantOff, createConfirmationPrompt, createDeleteConfirmationPrompt, createIntelInfo, createLargeDescription, createSmallDescription, doesButtonHaveConfirmDialog, endAfterDelay, endAfterDelay, endImmediately, forceAddNextFrame, getArrowData, getBackgroundGlowColor, getBaseDaysAfterEnd, getBulletColorForMode, getButtonStoryPointActionDelegate, getCancelText, getCircleBorderColorOverride, getCommMessageSound, getCommRelayRange, getConfirmationPromptWidth, getConfirmText, getDays, getDaysSincePlayerVisible, getDaysString, getFactionForUIColors, getImportantIcon, getIntelTags, getListInfoParam, getMapLocation, getName, getPlayerVisibleTimestamp, getPostingLocation, getPostingRangeLY, getSmallDescriptionTitle, getSortString, getSortStringNewestFirst, getSortStringNewestFirst, getSortTier, getSoundColonyThreat, getSoundLogUpdate, getSoundMajorPosting, getSoundMinorMessage, getSoundStandardPosting, getSoundStandardUpdate, getTagsForSort, getTimeRemainingFraction, 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, shouldRemoveIntel, storyActionConfirmed, tableRowClicked, unindent
-
Field Details
-
done
protected transient boolean done -
remove
protected transient boolean remove -
endConversationOnReturning
protected transient boolean endConversationOnReturning -
dialog
-
text
-
options
-
creator
-
-
Constructor Details
-
BaseHistorianOffer
public BaseHistorianOffer()
-
-
Method Details
-
init
- Specified by:
init
in interfaceHistorianData.HistorianOffer
-
getCreator
- Specified by:
getCreator
in interfaceHistorianData.HistorianOffer
-
setCreator
- Specified by:
setCreator
in interfaceHistorianData.HistorianOffer
-
addPromptAndOption
- Specified by:
addPromptAndOption
in interfaceHistorianData.HistorianOffer
-
isInteractionFinished
public boolean isInteractionFinished()- Specified by:
isInteractionFinished
in interfaceHistorianData.HistorianOffer
-
optionSelected
- Specified by:
optionSelected
in interfaceHistorianData.HistorianOffer
-
setDone
public void setDone(boolean done) -
shouldRemoveOffer
public boolean shouldRemoveOffer()- Specified by:
shouldRemoveOffer
in interfaceHistorianData.HistorianOffer
-
setRemove
public void setRemove(boolean remove) -
getSortOrder
public int getSortOrder()- Specified by:
getSortOrder
in interfaceHistorianData.HistorianOffer
-
shouldEndConversationOnReturning
public boolean shouldEndConversationOnReturning()- Specified by:
shouldEndConversationOnReturning
in interfaceHistorianData.HistorianOffer
-
setEndConversationOnReturning
public void setEndConversationOnReturning(boolean endConversationOnReturning) -
getIcon
Description copied from interface:IntelInfoPlugin
40x40, no icon if null.- Specified by:
getIcon
in interfaceIntelInfoPlugin
- Overrides:
getIcon
in classBaseIntelPlugin
- Returns:
-
notifyAccepted
public void notifyAccepted()- Specified by:
notifyAccepted
in interfaceHistorianData.HistorianOffer
-