Class QuartermasterCargoSwapBarEvent
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.bar.events.BaseBarEvent
com.fs.starfarer.api.impl.campaign.intel.bar.events.BaseGetCommodityBarEvent
com.fs.starfarer.api.impl.campaign.intel.bar.events.QuartermasterCargoSwapBarEvent
- All Implemented Interfaces:
PortsideBarEvent
-
Field Summary
FieldsFields inherited from class com.fs.starfarer.api.impl.campaign.intel.bar.events.BaseGetCommodityBarEvent
commodity, market, OPTION_CANCEL, OPTION_CONFIRM, OPTION_CONTINUE, person, quantity, random, seed, unitPrice
Fields inherited from class com.fs.starfarer.api.impl.campaign.intel.bar.events.BaseBarEvent
dialog, done, memoryMap, noContinue, options, shownAt, text
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
adjustPerson
(PersonAPI person) protected int
protected PersonAPI
protected void
protected String
protected Color[]
protected String[]
protected String
protected String
protected String
protected String
protected String
protected Color[]
protected String[]
protected String
protected String
protected String
protected String
protected float
protected String
protected float
getValue()
boolean
shouldShowAtMarket
(MarketAPI market) Methods inherited from class com.fs.starfarer.api.impl.campaign.intel.bar.events.BaseGetCommodityBarEvent
addPromptAndOption, addStoryOption, canAccept, doConfirmActionsPreAcceptText, doStandardConfirmActions, getCanNotAcceptTooltip, getDeclineTextColors, getDeclineTextTokens, getHeOrShe, getHimOrHer, getHimOrHerself, getHisOrHer, getMainText2, getMainText2Colors, getMainText2Tokens, getManOrWoman, getMarket, getPerson, init, isDialogFinished, optionSelected, pickHighImportance, pickImportance, pickLowImportance, pickMediumImportance, pickOne, regen, showCargoCap, showTotalAndOptions
Methods inherited from class com.fs.starfarer.api.impl.campaign.intel.bar.events.BaseBarEvent
advance, endWithContinue, getBarEventId, getShownAt, isAlwaysShow, shouldRemoveEvent, wasShownAtMarket
-
Field Details
-
playerGiveQuantity
protected int playerGiveQuantity -
playerGiveCommodity
-
-
Constructor Details
-
QuartermasterCargoSwapBarEvent
public QuartermasterCargoSwapBarEvent()
-
-
Method Details
-
shouldShowAtMarket
- Specified by:
shouldShowAtMarket
in interfacePortsideBarEvent
- Overrides:
shouldShowAtMarket
in classBaseBarEvent
-
getCommodityId
- Overrides:
getCommodityId
in classBaseGetCommodityBarEvent
-
createPerson
- Overrides:
createPerson
in classBaseGetCommodityBarEvent
-
adjustPerson
- Overrides:
adjustPerson
in classBaseGetCommodityBarEvent
-
getPersonFaction
- Overrides:
getPersonFaction
in classBaseGetCommodityBarEvent
-
getPersonRank
- Overrides:
getPersonRank
in classBaseGetCommodityBarEvent
-
getPersonPost
- Overrides:
getPersonPost
in classBaseGetCommodityBarEvent
-
getValue
protected float getValue() -
computeQuantity
protected int computeQuantity()- Overrides:
computeQuantity
in classBaseGetCommodityBarEvent
-
getPriceMult
protected float getPriceMult()- Overrides:
getPriceMult
in classBaseGetCommodityBarEvent
-
getPrompt
- Specified by:
getPrompt
in classBaseGetCommodityBarEvent
-
getOptionText
- Specified by:
getOptionText
in classBaseGetCommodityBarEvent
-
getMainText
- Specified by:
getMainText
in classBaseGetCommodityBarEvent
-
getMainTextTokens
- Overrides:
getMainTextTokens
in classBaseGetCommodityBarEvent
-
getMainTextColors
- Overrides:
getMainTextColors
in classBaseGetCommodityBarEvent
-
getConfirmText
- Specified by:
getConfirmText
in classBaseGetCommodityBarEvent
-
getCancelText
- Specified by:
getCancelText
in classBaseGetCommodityBarEvent
-
getAcceptText
- Overrides:
getAcceptText
in classBaseGetCommodityBarEvent
-
getAcceptTextTokens
- Overrides:
getAcceptTextTokens
in classBaseGetCommodityBarEvent
-
getAcceptTextColors
- Overrides:
getAcceptTextColors
in classBaseGetCommodityBarEvent
-
doExtraConfirmActions
protected void doExtraConfirmActions()- Overrides:
doExtraConfirmActions
in classBaseGetCommodityBarEvent
-
getDeclineText
- Overrides:
getDeclineText
in classBaseGetCommodityBarEvent
-