public class ProcurementMissionIntel extends BaseMissionIntel
BaseMissionIntel.MissionResult, BaseMissionIntel.MissionStateIntelInfoPlugin.ArrowData, IntelInfoPlugin.IntelSortTier, IntelInfoPlugin.ListInfoMode, IntelInfoPlugin.TableRowClickData| Modifier and Type | Field and Description |
|---|---|
protected float |
baseReward |
static java.lang.String |
BUTTON_COMMODITY_INFO |
protected CommodityOnMarketAPI |
commodity |
protected PersonAPI |
contact |
protected boolean |
contactWillInitiateComms |
static org.apache.log4j.Logger |
log |
protected MarketAPI |
market |
static java.lang.String |
PERSON_CHECKOUT_REASON |
protected float |
pricePerUnit |
protected float |
quantity |
BUTTON_ABANDON, BUTTON_ACCEPT, duration, elapsedDays, missionResult, missionState, randomCancel, randomCancelProbBULLET, BUTTON_DELETE, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, tagsForSort, timestampLIST_ITEM_TEXT_WIDTH, NEW_DAYS| Constructor and Description |
|---|
ProcurementMissionIntel() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBulletPoints(TooltipMakerAPI info,
IntelInfoPlugin.ListInfoMode mode) |
void |
advanceMission(float amount) |
protected void |
applyTradeValueImpact(float totalReward) |
void |
buttonPressConfirmed(java.lang.Object buttonId,
IntelUIAPI ui) |
boolean |
callEvent(java.lang.String ruleId,
InteractionDialogAPI dialog,
java.util.List<Misc.Token> params,
java.util.Map<java.lang.String,MemoryAPI> memoryMap) |
protected BaseMissionIntel.MissionResult |
createAbandonedResult(boolean withPenalty) |
void |
createConfirmationPrompt(java.lang.Object buttonId,
TooltipMakerAPI prompt) |
void |
createIntelInfo(TooltipMakerAPI info,
IntelInfoPlugin.ListInfoMode mode) |
void |
createSmallDescription(TooltipMakerAPI info,
float width,
float height) |
protected BaseMissionIntel.MissionResult |
createTimeRanOutFailedResult() |
boolean |
doesButtonHaveConfirmDialog(java.lang.Object buttonId) |
protected boolean |
doNearbyMarketsHave(MarketAPI from,
java.lang.String commodityId,
float minQty) |
void |
endMission() |
java.lang.String |
getCancelText(java.lang.Object buttonId) |
float |
getConfirmationPromptWidth(java.lang.Object buttonId) |
java.lang.String |
getConfirmText(java.lang.Object buttonId) |
static ImportantPeopleAPI.PersonDataAPI |
getCriminal(MarketAPI market,
java.lang.String checkoutReason,
java.lang.String factionId) |
FactionAPI |
getFactionForUIColors() |
java.lang.String |
getIcon()
40x40, no icon if null.
|
java.util.Set<java.lang.String> |
getIntelTags(SectorMapAPI map)
Method NEEDS to handle map being null gracefully.
|
static ImportantPeopleAPI.PersonDataAPI |
getLegitTrader(MarketAPI market,
java.lang.String checkoutReason,
java.lang.String factionId) |
SectorEntityToken |
getMapLocation(SectorMapAPI map) |
protected java.lang.String |
getMissionTypeNoun() |
java.lang.String |
getName() |
protected int |
getQuantity(java.lang.String commodityId) |
protected float |
getQuantityAdjustedForMarket(java.lang.String commodityId,
float quantity,
float illegalMult,
float min,
MarketAPI market) |
java.lang.String |
getSmallDescriptionTitle() |
java.lang.String |
getSortString() |
protected boolean |
hasBonus() |
void |
missionAccepted() |
protected java.lang.String |
pickCommodity() |
protected PersonAPI |
pickContact(MarketAPI market,
CommodityOnMarketAPI com) |
protected MarketAPI |
pickMarket(java.lang.String commodityId,
float quantity,
float illegalMult,
float min) |
boolean |
runWhilePaused() |
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, shouldRemoveInteladdBulletPoints, 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, unindentpublic static final java.lang.String PERSON_CHECKOUT_REASON
public static java.lang.String BUTTON_COMMODITY_INFO
public static org.apache.log4j.Logger log
protected float quantity
protected float pricePerUnit
protected boolean contactWillInitiateComms
protected CommodityOnMarketAPI commodity
protected float baseReward
public ProcurementMissionIntel()
public void missionAccepted()
missionAccepted in class BaseMissionIntelprotected PersonAPI pickContact(MarketAPI market, CommodityOnMarketAPI com)
public static ImportantPeopleAPI.PersonDataAPI getLegitTrader(MarketAPI market, java.lang.String checkoutReason, java.lang.String factionId)
public static ImportantPeopleAPI.PersonDataAPI getCriminal(MarketAPI market, java.lang.String checkoutReason, java.lang.String factionId)
protected java.lang.String pickCommodity()
protected int getQuantity(java.lang.String commodityId)
protected float getQuantityAdjustedForMarket(java.lang.String commodityId, float quantity, float illegalMult, float min, MarketAPI market)
protected MarketAPI pickMarket(java.lang.String commodityId, float quantity, float illegalMult, float min)
protected boolean doNearbyMarketsHave(MarketAPI from, java.lang.String commodityId, float minQty)
public void advanceMission(float amount)
advanceMission in class BaseMissionIntelpublic boolean callEvent(java.lang.String ruleId, InteractionDialogAPI dialog, java.util.List<Misc.Token> params, java.util.Map<java.lang.String,MemoryAPI> memoryMap)
callEvent in interface CallEvent.CallableEventcallEvent in class BaseIntelPluginprotected boolean hasBonus()
protected void applyTradeValueImpact(float totalReward)
public void endMission()
endMission in class BaseMissionIntelpublic boolean runWhilePaused()
runWhilePaused in interface EveryFrameScriptrunWhilePaused in class BaseIntelPluginprotected void addBulletPoints(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
addBulletPoints in class BaseIntelPluginpublic void createIntelInfo(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
createIntelInfo in interface IntelInfoPlugincreateIntelInfo in class BaseIntelPluginpublic java.lang.String getSortString()
getSortString in interface IntelInfoPlugingetSortString in class BaseIntelPluginpublic java.lang.String getName()
getName in class BaseIntelPluginpublic FactionAPI getFactionForUIColors()
getFactionForUIColors in interface IntelInfoPlugingetFactionForUIColors in class BaseIntelPluginpublic java.lang.String getSmallDescriptionTitle()
getSmallDescriptionTitle in interface IntelInfoPlugingetSmallDescriptionTitle in class BaseIntelPluginpublic void createSmallDescription(TooltipMakerAPI info, float width, float height)
createSmallDescription in interface IntelInfoPlugincreateSmallDescription in class BaseIntelPluginpublic java.lang.String getIcon()
IntelInfoPlugingetIcon in interface IntelInfoPlugingetIcon in class BaseIntelPluginpublic java.util.Set<java.lang.String> getIntelTags(SectorMapAPI map)
IntelInfoPlugingetIntelTags in interface IntelInfoPlugingetIntelTags in class BaseMissionIntelpublic SectorEntityToken getMapLocation(SectorMapAPI map)
getMapLocation in interface IntelInfoPlugingetMapLocation in class BaseIntelPluginprotected java.lang.String getMissionTypeNoun()
getMissionTypeNoun in class BaseMissionIntelprotected BaseMissionIntel.MissionResult createAbandonedResult(boolean withPenalty)
createAbandonedResult in class BaseMissionIntelprotected BaseMissionIntel.MissionResult createTimeRanOutFailedResult()
createTimeRanOutFailedResult in class BaseMissionIntelpublic void buttonPressConfirmed(java.lang.Object buttonId, IntelUIAPI ui)
buttonPressConfirmed in interface IntelInfoPluginbuttonPressConfirmed in class BaseMissionIntelpublic void createConfirmationPrompt(java.lang.Object buttonId, TooltipMakerAPI prompt)
createConfirmationPrompt in interface IntelInfoPlugincreateConfirmationPrompt in class BaseMissionIntelpublic boolean doesButtonHaveConfirmDialog(java.lang.Object buttonId)
doesButtonHaveConfirmDialog in interface IntelInfoPlugindoesButtonHaveConfirmDialog in class BaseMissionIntelpublic float getConfirmationPromptWidth(java.lang.Object buttonId)
getConfirmationPromptWidth in interface IntelInfoPlugingetConfirmationPromptWidth in class BaseIntelPluginpublic java.lang.String getConfirmText(java.lang.Object buttonId)
getConfirmText in interface IntelInfoPlugingetConfirmText in class BaseIntelPluginpublic java.lang.String getCancelText(java.lang.Object buttonId)
getCancelText in interface IntelInfoPlugingetCancelText in class BaseIntelPlugin