public abstract class BaseMissionIntel extends BaseIntelPlugin
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseMissionIntel.MissionResult |
static class |
BaseMissionIntel.MissionState |
IntelInfoPlugin.ArrowData, IntelInfoPlugin.IntelSortTier, IntelInfoPlugin.ListInfoMode, IntelInfoPlugin.TableRowClickData| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUTTON_ABANDON |
static java.lang.String |
BUTTON_ACCEPT |
protected java.lang.Float |
duration |
protected float |
elapsedDays |
protected BaseMissionIntel.MissionResult |
missionResult |
protected BaseMissionIntel.MissionState |
missionState |
protected IntervalUtil |
randomCancel |
protected java.lang.Float |
randomCancelProb |
BULLET, BUTTON_DELETE, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, tagsForSort, timestampLIST_ITEM_TEXT_WIDTH, NEW_DAYS| Constructor and Description |
|---|
BaseMissionIntel() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAbandonButton(TooltipMakerAPI info,
float width) |
protected void |
addAbandonButton(TooltipMakerAPI info,
float width,
java.lang.String abandon) |
protected void |
addAcceptButton(TooltipMakerAPI info,
float width) |
protected void |
addAcceptButton(TooltipMakerAPI info,
float width,
java.lang.String accept) |
protected void |
addAcceptOrAbandonButton(TooltipMakerAPI info,
float width) |
protected void |
addAcceptOrAbandonButton(TooltipMakerAPI info,
float width,
java.lang.String accept,
java.lang.String abandon) |
protected void |
addGenericMissionState(TooltipMakerAPI info) |
void |
advanceImpl(float amount) |
abstract void |
advanceMission(float amount) |
void |
buttonPressConfirmed(java.lang.Object buttonId,
IntelUIAPI ui) |
boolean |
canAbandonWithoutPenalty() |
protected void |
cancel() |
protected abstract BaseMissionIntel.MissionResult |
createAbandonedResult(boolean withPenalty) |
protected BaseMissionIntel.MissionResult |
createCancelledResult() |
void |
createConfirmationPrompt(java.lang.Object buttonId,
TooltipMakerAPI prompt) |
protected abstract BaseMissionIntel.MissionResult |
createTimeRanOutFailedResult() |
boolean |
doesButtonHaveConfirmDialog(java.lang.Object buttonId) |
abstract void |
endMission() |
java.lang.Float |
getDuration() |
float |
getElapsedDays() |
java.lang.String |
getImportantIcon()
20x20, if null will use default.
|
java.util.Set<java.lang.String> |
getIntelTags(SectorMapAPI map)
Method NEEDS to handle map being null gracefully.
|
BaseMissionIntel.MissionResult |
getMissionResult() |
BaseMissionIntel.MissionState |
getMissionState() |
protected java.lang.String |
getMissionTypeNoun() |
protected float |
getNoPenaltyAbandonDays() |
java.lang.String |
getPostfixForState() |
float |
getTimeRemainingFraction()
Should return 0 if the concept doesn't apply.
|
protected void |
initRandomCancel() |
protected void |
initRandomCancel(float prob) |
boolean |
isAbandoned() |
boolean |
isAccepted() |
boolean |
isCancelled() |
boolean |
isCompleted() |
boolean |
isFailed() |
boolean |
isPosted() |
abstract void |
missionAccepted() |
void |
setDuration(java.lang.Float duration) |
void |
setElapsedDays(float elapsedDays) |
void |
setMissionResult(BaseMissionIntel.MissionResult missionResult) |
void |
setMissionState(BaseMissionIntel.MissionState missionState) |
boolean |
shouldRemoveIntel() |
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, unindentpublic static java.lang.String BUTTON_ACCEPT
public static java.lang.String BUTTON_ABANDON
protected IntervalUtil randomCancel
protected java.lang.Float randomCancelProb
protected BaseMissionIntel.MissionResult missionResult
protected BaseMissionIntel.MissionState missionState
protected java.lang.Float duration
protected float elapsedDays
public BaseMissionIntel()
protected void initRandomCancel()
protected void initRandomCancel(float prob)
protected void cancel()
public void advanceImpl(float amount)
advanceImpl in class BaseIntelPluginpublic float getTimeRemainingFraction()
IntelInfoPlugingetTimeRemainingFraction in interface IntelInfoPlugingetTimeRemainingFraction in class BaseIntelPluginpublic boolean isPosted()
public boolean isCancelled()
public boolean isFailed()
public boolean isCompleted()
public boolean isAccepted()
public boolean isAbandoned()
public boolean canAbandonWithoutPenalty()
protected float getNoPenaltyAbandonDays()
public java.lang.String getImportantIcon()
IntelInfoPlugingetImportantIcon in interface IntelInfoPlugingetImportantIcon in class BaseIntelPluginpublic abstract void endMission()
public abstract void advanceMission(float amount)
public abstract void missionAccepted()
protected abstract BaseMissionIntel.MissionResult createTimeRanOutFailedResult()
protected abstract BaseMissionIntel.MissionResult createAbandonedResult(boolean withPenalty)
protected BaseMissionIntel.MissionResult createCancelledResult()
protected java.lang.String getMissionTypeNoun()
public void buttonPressConfirmed(java.lang.Object buttonId, IntelUIAPI ui)
buttonPressConfirmed in interface IntelInfoPluginbuttonPressConfirmed in class BaseIntelPluginpublic void createConfirmationPrompt(java.lang.Object buttonId, TooltipMakerAPI prompt)
createConfirmationPrompt in interface IntelInfoPlugincreateConfirmationPrompt in class BaseIntelPluginpublic boolean doesButtonHaveConfirmDialog(java.lang.Object buttonId)
doesButtonHaveConfirmDialog in interface IntelInfoPlugindoesButtonHaveConfirmDialog in class BaseIntelPluginpublic java.util.Set<java.lang.String> getIntelTags(SectorMapAPI map)
IntelInfoPlugingetIntelTags in interface IntelInfoPlugingetIntelTags in class BaseIntelPluginprotected void addGenericMissionState(TooltipMakerAPI info)
public java.lang.String getPostfixForState()
protected void addAcceptOrAbandonButton(TooltipMakerAPI info, float width)
protected void addAcceptOrAbandonButton(TooltipMakerAPI info, float width, java.lang.String accept, java.lang.String abandon)
protected void addAcceptButton(TooltipMakerAPI info, float width)
protected void addAcceptButton(TooltipMakerAPI info, float width, java.lang.String accept)
protected void addAbandonButton(TooltipMakerAPI info, float width)
protected void addAbandonButton(TooltipMakerAPI info, float width, java.lang.String abandon)
public BaseMissionIntel.MissionResult getMissionResult()
public void setMissionResult(BaseMissionIntel.MissionResult missionResult)
public BaseMissionIntel.MissionState getMissionState()
public void setMissionState(BaseMissionIntel.MissionState missionState)
public java.lang.Float getDuration()
public void setDuration(java.lang.Float duration)
public float getElapsedDays()
public void setElapsedDays(float elapsedDays)
public boolean shouldRemoveIntel()
shouldRemoveIntel in interface IntelInfoPluginshouldRemoveIntel in class BaseIntelPlugin