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

public abstract class BaseGetCommodityBarEvent extends BaseBarEvent
  • Field Details

  • Constructor Details

    • BaseGetCommodityBarEvent

      public BaseGetCommodityBarEvent()
  • Method Details

    • regen

      protected void regen(MarketAPI market)
    • createPerson

      protected PersonAPI createPerson()
    • getPriceMult

      protected float getPriceMult()
    • getCommodityId

      protected String getCommodityId()
    • computeQuantity

      protected int computeQuantity()
    • adjustPerson

      protected void adjustPerson(PersonAPI person)
    • getPersonFaction

      protected String getPersonFaction()
    • getPersonRank

      protected String getPersonRank()
    • getPersonPost

      protected String getPersonPost()
    • getManOrWoman

      protected String getManOrWoman()
    • getHeOrShe

      protected String getHeOrShe()
    • getHimOrHer

      protected String getHimOrHer()
    • getHimOrHerself

      protected String getHimOrHerself()
    • getHisOrHer

      protected String getHisOrHer()
    • addPromptAndOption

      public void addPromptAndOption(InteractionDialogAPI dialog, Map<String,MemoryAPI> memoryMap)
      Specified by:
      addPromptAndOption in interface PortsideBarEvent
      Overrides:
      addPromptAndOption in class BaseBarEvent
    • getPrompt

      protected abstract String getPrompt()
    • getOptionText

      protected abstract String getOptionText()
    • getConfirmText

      protected abstract String getConfirmText()
    • getCancelText

      protected abstract String getCancelText()
    • getMainText

      protected abstract String getMainText()
    • getMainTextTokens

      protected String[] getMainTextTokens()
    • getMainTextColors

      protected Color[] getMainTextColors()
    • getMainText2

      protected String getMainText2()
    • getMainText2Tokens

      protected String[] getMainText2Tokens()
    • getMainText2Colors

      protected Color[] getMainText2Colors()
    • getAcceptText

      protected String getAcceptText()
    • getAcceptTextTokens

      protected String[] getAcceptTextTokens()
    • getAcceptTextColors

      protected Color[] getAcceptTextColors()
    • getDeclineText

      protected String getDeclineText()
    • getDeclineTextTokens

      protected String[] getDeclineTextTokens()
    • getDeclineTextColors

      protected Color[] getDeclineTextColors()
    • init

      public void init(InteractionDialogAPI dialog, Map<String,MemoryAPI> memoryMap)
      Specified by:
      init in interface PortsideBarEvent
      Overrides:
      init in class BaseBarEvent
    • showCargoCap

      protected boolean showCargoCap()
    • showTotalAndOptions

      protected void showTotalAndOptions()
    • addStoryOption

      protected void addStoryOption()
    • canAccept

      protected boolean canAccept()
    • getCanNotAcceptTooltip

      protected String getCanNotAcceptTooltip()
    • doExtraConfirmActions

      protected void doExtraConfirmActions()
    • doConfirmActionsPreAcceptText

      protected void doConfirmActionsPreAcceptText()
    • doStandardConfirmActions

      protected void doStandardConfirmActions()
    • optionSelected

      public void optionSelected(String optionText, Object optionData)
      Specified by:
      optionSelected in interface PortsideBarEvent
      Overrides:
      optionSelected in class BaseBarEvent
    • isDialogFinished

      public boolean isDialogFinished()
      Specified by:
      isDialogFinished in interface PortsideBarEvent
      Overrides:
      isDialogFinished in class BaseBarEvent
    • getPerson

      public PersonAPI getPerson()
    • getMarket

      public MarketAPI getMarket()
    • pickImportance

      public PersonImportance pickImportance()
    • pickMediumImportance

      public PersonImportance pickMediumImportance()
    • pickHighImportance

      public PersonImportance pickHighImportance()
    • pickLowImportance

      public PersonImportance pickLowImportance()
    • pickOne

      public String pickOne(String... options)