Class BaseGetCommodityBarEvent
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.bar.events.BaseBarEvent
com.fs.starfarer.api.impl.campaign.intel.bar.events.BaseGetCommodityBarEvent
- All Implemented Interfaces:
PortsideBarEvent
- Direct Known Subclasses:
CorruptPLClerkSuppliesBarEvent
,DeliveryBarEvent
,DiktatLobsterBarEvent
,LuddicCraftBarEvent
,LuddicFarmerBarEvent
,MercsOnTheRunBarEvent
,QuartermasterCargoSwapBarEvent
,ScientistAICoreBarEvent
,TriTachLoanBarEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected MarketAPI
static final String
static final String
static final String
protected PersonAPI
protected int
protected Random
protected long
protected int
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 TypeMethodDescriptionvoid
addPromptAndOption
(InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) protected void
protected void
adjustPerson
(PersonAPI person) protected boolean
protected int
protected PersonAPI
protected void
protected void
protected void
protected String
protected Color[]
protected String[]
protected abstract String
protected String
protected String
protected abstract String
protected String
protected Color[]
protected String[]
protected String
protected String
protected String
protected String
protected abstract String
protected String
protected Color[]
protected String[]
protected Color[]
protected String[]
protected String
protected abstract String
protected String
protected String
protected String
protected float
protected abstract String
void
init
(InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) boolean
void
optionSelected
(String optionText, Object optionData) protected void
protected boolean
protected void
Methods inherited from class com.fs.starfarer.api.impl.campaign.intel.bar.events.BaseBarEvent
advance, endWithContinue, getBarEventId, getShownAt, isAlwaysShow, shouldRemoveEvent, shouldShowAtMarket, wasShownAtMarket
-
Field Details
-
OPTION_CONFIRM
- See Also:
-
OPTION_CANCEL
- See Also:
-
OPTION_CONTINUE
- See Also:
-
seed
protected long seed -
person
-
quantity
protected int quantity -
unitPrice
protected int unitPrice -
commodity
-
random
-
market
-
-
Constructor Details
-
BaseGetCommodityBarEvent
public BaseGetCommodityBarEvent()
-
-
Method Details
-
regen
-
createPerson
-
getPriceMult
protected float getPriceMult() -
getCommodityId
-
computeQuantity
protected int computeQuantity() -
adjustPerson
-
getPersonFaction
-
getPersonRank
-
getPersonPost
-
getManOrWoman
-
getHeOrShe
-
getHimOrHer
-
getHimOrHerself
-
getHisOrHer
-
addPromptAndOption
- Specified by:
addPromptAndOption
in interfacePortsideBarEvent
- Overrides:
addPromptAndOption
in classBaseBarEvent
-
getPrompt
-
getOptionText
-
getConfirmText
-
getCancelText
-
getMainText
-
getMainTextTokens
-
getMainTextColors
-
getMainText2
-
getMainText2Tokens
-
getMainText2Colors
-
getAcceptText
-
getAcceptTextTokens
-
getAcceptTextColors
-
getDeclineText
-
getDeclineTextTokens
-
getDeclineTextColors
-
init
- Specified by:
init
in interfacePortsideBarEvent
- Overrides:
init
in classBaseBarEvent
-
showCargoCap
protected boolean showCargoCap() -
showTotalAndOptions
protected void showTotalAndOptions() -
addStoryOption
protected void addStoryOption() -
canAccept
protected boolean canAccept() -
getCanNotAcceptTooltip
-
doExtraConfirmActions
protected void doExtraConfirmActions() -
doConfirmActionsPreAcceptText
protected void doConfirmActionsPreAcceptText() -
doStandardConfirmActions
protected void doStandardConfirmActions() -
optionSelected
- Specified by:
optionSelected
in interfacePortsideBarEvent
- Overrides:
optionSelected
in classBaseBarEvent
-
isDialogFinished
public boolean isDialogFinished()- Specified by:
isDialogFinished
in interfacePortsideBarEvent
- Overrides:
isDialogFinished
in classBaseBarEvent
-
getPerson
-
getMarket
-
pickImportance
-
pickMediumImportance
-
pickHighImportance
-
pickLowImportance
-
pickOne
-