Class ProcurementMissionIntel
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
com.fs.starfarer.api.impl.campaign.intel.BaseMissionIntel
com.fs.starfarer.api.impl.campaign.intel.ProcurementMissionIntel
- All Implemented Interfaces:
IntelInfoPlugin
,EveryFrameScript
,CommRelayEntityPlugin.CommSnifferReadableIntel
,CallEvent.CallableEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fs.starfarer.api.impl.campaign.intel.BaseMissionIntel
BaseMissionIntel.MissionResult, BaseMissionIntel.MissionState
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 float
static String
protected CommodityOnMarketAPI
protected PersonAPI
protected boolean
static org.apache.log4j.Logger
protected MarketAPI
static final String
protected float
protected float
Fields inherited from class com.fs.starfarer.api.impl.campaign.intel.BaseMissionIntel
BUTTON_ABANDON, BUTTON_ACCEPT, duration, elapsedDays, missionResult, missionState, randomCancel, randomCancelProb
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
void
advanceMission
(float amount) protected void
applyTradeValueImpact
(float totalReward) void
buttonPressConfirmed
(Object buttonId, IntelUIAPI ui) boolean
callEvent
(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) protected BaseMissionIntel.MissionResult
createAbandonedResult
(boolean withPenalty) void
createConfirmationPrompt
(Object buttonId, TooltipMakerAPI prompt) void
void
createSmallDescription
(TooltipMakerAPI info, float width, float height) protected BaseMissionIntel.MissionResult
boolean
doesButtonHaveConfirmDialog
(Object buttonId) protected boolean
doNearbyMarketsHave
(MarketAPI from, String commodityId, float minQty) void
getCancelText
(Object buttonId) float
getConfirmationPromptWidth
(Object buttonId) getConfirmText
(Object buttonId) getCriminal
(MarketAPI market, String checkoutReason, String factionId) getIcon()
40x40, no icon if null.getIntelTags
(SectorMapAPI map) Method NEEDS to handle map being null gracefully.getLegitTrader
(MarketAPI market, String checkoutReason, String factionId) protected String
getName()
protected int
getQuantity
(String commodityId) protected float
getQuantityAdjustedForMarket
(String commodityId, float quantity, float illegalMult, float min, MarketAPI market) protected boolean
hasBonus()
void
protected String
protected PersonAPI
pickContact
(MarketAPI market, CommodityOnMarketAPI com) protected MarketAPI
pickMarket
(String commodityId, float quantity, float illegalMult, float min) boolean
Methods inherited from class com.fs.starfarer.api.impl.campaign.intel.BaseMissionIntel
addAbandonButton, addAbandonButton, addAcceptButton, addAcceptButton, addAcceptOrAbandonButton, addAcceptOrAbandonButton, addGenericMissionState, advanceImpl, canAbandonWithoutPenalty, cancel, createCancelledResult, getDuration, getElapsedDays, getImportantIcon, getMissionResult, getMissionState, getNoPenaltyAbandonDays, getPostfixForState, getTimeRemainingFraction, initRandomCancel, initRandomCancel, isAbandoned, isAccepted, isCancelled, isCompleted, isFailed, isPosted, setDuration, setElapsedDays, setMissionResult, setMissionState, shouldRemoveIntel
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, canMakeVisible, canMakeVisibleToCommSniffer, canMakeVisibleToPlayer, canTurnImportantOff, createDeleteConfirmationPrompt, createLargeDescription, endAfterDelay, endAfterDelay, endImmediately, forceAddNextFrame, getArrowData, getBackgroundGlowColor, getBaseDaysAfterEnd, getBulletColorForMode, getButtonStoryPointActionDelegate, getCircleBorderColorOverride, getCommMessageSound, getCommRelayRange, getDays, getDaysSincePlayerVisible, getDaysString, getListInfoParam, getPlayerVisibleTimestamp, getPostingLocation, getPostingRangeLY, 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, sendUpdate, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, setForceAddNextFrame, setHidden, setImportant, setListInfoParam, setNew, setPlayerVisibleTimestamp, setPostingLocation, setPostingRangeLY, setPostingRangeLY, setTagsForSort, storyActionConfirmed, tableRowClicked, unindent
-
Field Details
-
PERSON_CHECKOUT_REASON
- See Also:
-
BUTTON_COMMODITY_INFO
-
log
public static org.apache.log4j.Logger log -
market
-
contact
-
quantity
protected float quantity -
pricePerUnit
protected float pricePerUnit -
contactWillInitiateComms
protected boolean contactWillInitiateComms -
commodity
-
baseReward
protected float baseReward
-
-
Constructor Details
-
ProcurementMissionIntel
public ProcurementMissionIntel()
-
-
Method Details
-
missionAccepted
public void missionAccepted()- Specified by:
missionAccepted
in classBaseMissionIntel
-
pickContact
-
getLegitTrader
public static ImportantPeopleAPI.PersonDataAPI getLegitTrader(MarketAPI market, String checkoutReason, String factionId) -
getCriminal
public static ImportantPeopleAPI.PersonDataAPI getCriminal(MarketAPI market, String checkoutReason, String factionId) -
pickCommodity
-
getQuantity
-
getQuantityAdjustedForMarket
-
pickMarket
-
doNearbyMarketsHave
-
advanceMission
public void advanceMission(float amount) - Specified by:
advanceMission
in classBaseMissionIntel
-
callEvent
public boolean callEvent(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) - Specified by:
callEvent
in interfaceCallEvent.CallableEvent
- Overrides:
callEvent
in classBaseIntelPlugin
-
hasBonus
protected boolean hasBonus() -
applyTradeValueImpact
protected void applyTradeValueImpact(float totalReward) -
endMission
public void endMission()- Specified by:
endMission
in classBaseMissionIntel
-
runWhilePaused
public boolean runWhilePaused()- Specified by:
runWhilePaused
in interfaceEveryFrameScript
- Overrides:
runWhilePaused
in classBaseIntelPlugin
- Returns:
- whether advance() should be called while the campaign engine is paused.
-
addBulletPoints
- Overrides:
addBulletPoints
in classBaseIntelPlugin
-
createIntelInfo
- Specified by:
createIntelInfo
in interfaceIntelInfoPlugin
- Overrides:
createIntelInfo
in classBaseIntelPlugin
-
getSortString
- Specified by:
getSortString
in interfaceIntelInfoPlugin
- Overrides:
getSortString
in classBaseIntelPlugin
-
getName
- Overrides:
getName
in classBaseIntelPlugin
-
getFactionForUIColors
- Specified by:
getFactionForUIColors
in interfaceIntelInfoPlugin
- Overrides:
getFactionForUIColors
in classBaseIntelPlugin
-
getSmallDescriptionTitle
- Specified by:
getSmallDescriptionTitle
in interfaceIntelInfoPlugin
- Overrides:
getSmallDescriptionTitle
in classBaseIntelPlugin
-
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 classBaseMissionIntel
- Returns:
-
getMapLocation
- Specified by:
getMapLocation
in interfaceIntelInfoPlugin
- Overrides:
getMapLocation
in classBaseIntelPlugin
-
getMissionTypeNoun
- Overrides:
getMissionTypeNoun
in classBaseMissionIntel
-
createAbandonedResult
- Specified by:
createAbandonedResult
in classBaseMissionIntel
-
createTimeRanOutFailedResult
- Specified by:
createTimeRanOutFailedResult
in classBaseMissionIntel
-
buttonPressConfirmed
- Specified by:
buttonPressConfirmed
in interfaceIntelInfoPlugin
- Overrides:
buttonPressConfirmed
in classBaseMissionIntel
-
createConfirmationPrompt
- Specified by:
createConfirmationPrompt
in interfaceIntelInfoPlugin
- Overrides:
createConfirmationPrompt
in classBaseMissionIntel
-
doesButtonHaveConfirmDialog
- Specified by:
doesButtonHaveConfirmDialog
in interfaceIntelInfoPlugin
- Overrides:
doesButtonHaveConfirmDialog
in classBaseMissionIntel
-
getConfirmationPromptWidth
- Specified by:
getConfirmationPromptWidth
in interfaceIntelInfoPlugin
- Overrides:
getConfirmationPromptWidth
in classBaseIntelPlugin
-
getConfirmText
- Specified by:
getConfirmText
in interfaceIntelInfoPlugin
- Overrides:
getConfirmText
in classBaseIntelPlugin
-
getCancelText
- Specified by:
getCancelText
in interfaceIntelInfoPlugin
- Overrides:
getCancelText
in classBaseIntelPlugin
-