public class ProcurementMissionIntel extends BaseMissionIntel
BaseMissionIntel.MissionResult, BaseMissionIntel.MissionState
IntelInfoPlugin.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 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, randomCancelProb
BULLET, BUTTON_DELETE, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, timestamp
LIST_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, shouldRemoveIntel
addBulletPoints, addDays, addDays, addDays, addDeleteButton, addDeleteButton, addGenericButton, addGenericButton, 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, getSortTier, getSoundColonyThreat, getSoundLogUpdate, getSoundMajorPosting, getSoundMinorMessage, getSoundStandardPosting, getSoundStandardUpdate, 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, storyActionConfirmed, tableRowClicked, unindent
public static final java.lang.String PERSON_CHECKOUT_REASON
public static java.lang.String BUTTON_COMMODITY_INFO
public static Logger log
protected MarketAPI market
protected PersonAPI contact
protected float quantity
protected float pricePerUnit
protected boolean contactWillInitiateComms
protected CommodityOnMarketAPI commodity
protected float baseReward
public void missionAccepted()
missionAccepted
in class BaseMissionIntel
protected 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 BaseMissionIntel
public 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.CallableEvent
callEvent
in class BaseIntelPlugin
protected boolean hasBonus()
protected void applyTradeValueImpact(float totalReward)
public void endMission()
endMission
in class BaseMissionIntel
public boolean runWhilePaused()
runWhilePaused
in interface EveryFrameScript
runWhilePaused
in class BaseIntelPlugin
protected void addBulletPoints(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
addBulletPoints
in class BaseIntelPlugin
public void createIntelInfo(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
createIntelInfo
in interface IntelInfoPlugin
createIntelInfo
in class BaseIntelPlugin
public java.lang.String getSortString()
getSortString
in interface IntelInfoPlugin
getSortString
in class BaseIntelPlugin
public java.lang.String getName()
getName
in class BaseIntelPlugin
public FactionAPI getFactionForUIColors()
getFactionForUIColors
in interface IntelInfoPlugin
getFactionForUIColors
in class BaseIntelPlugin
public java.lang.String getSmallDescriptionTitle()
getSmallDescriptionTitle
in interface IntelInfoPlugin
getSmallDescriptionTitle
in class BaseIntelPlugin
public void createSmallDescription(TooltipMakerAPI info, float width, float height)
createSmallDescription
in interface IntelInfoPlugin
createSmallDescription
in class BaseIntelPlugin
public java.lang.String getIcon()
IntelInfoPlugin
getIcon
in interface IntelInfoPlugin
getIcon
in class BaseIntelPlugin
public java.util.Set<java.lang.String> getIntelTags(SectorMapAPI map)
IntelInfoPlugin
getIntelTags
in interface IntelInfoPlugin
getIntelTags
in class BaseMissionIntel
public SectorEntityToken getMapLocation(SectorMapAPI map)
getMapLocation
in interface IntelInfoPlugin
getMapLocation
in class BaseIntelPlugin
protected java.lang.String getMissionTypeNoun()
getMissionTypeNoun
in class BaseMissionIntel
protected BaseMissionIntel.MissionResult createAbandonedResult(boolean withPenalty)
createAbandonedResult
in class BaseMissionIntel
protected BaseMissionIntel.MissionResult createTimeRanOutFailedResult()
createTimeRanOutFailedResult
in class BaseMissionIntel
public void buttonPressConfirmed(java.lang.Object buttonId, IntelUIAPI ui)
buttonPressConfirmed
in interface IntelInfoPlugin
buttonPressConfirmed
in class BaseMissionIntel
public void createConfirmationPrompt(java.lang.Object buttonId, TooltipMakerAPI prompt)
createConfirmationPrompt
in interface IntelInfoPlugin
createConfirmationPrompt
in class BaseMissionIntel
public boolean doesButtonHaveConfirmDialog(java.lang.Object buttonId)
doesButtonHaveConfirmDialog
in interface IntelInfoPlugin
doesButtonHaveConfirmDialog
in class BaseMissionIntel
public float getConfirmationPromptWidth(java.lang.Object buttonId)
getConfirmationPromptWidth
in interface IntelInfoPlugin
getConfirmationPromptWidth
in class BaseIntelPlugin
public java.lang.String getConfirmText(java.lang.Object buttonId)
getConfirmText
in interface IntelInfoPlugin
getConfirmText
in class BaseIntelPlugin
public java.lang.String getCancelText(java.lang.Object buttonId)
getCancelText
in interface IntelInfoPlugin
getCancelText
in class BaseIntelPlugin
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.