Class FleetInteractionDialogPluginImpl

java.lang.Object
com.fs.starfarer.api.impl.campaign.FleetInteractionDialogPluginImpl
All Implemented Interfaces:
InteractionDialogPlugin, RuleBasedDialog

public class FleetInteractionDialogPluginImpl extends Object implements InteractionDialogPlugin, RuleBasedDialog
  • Field Details

    • EMERGENCY_REPAIRS_MAX_DP

      public static float EMERGENCY_REPAIRS_MAX_DP
    • DO_NOT_AUTO_SHOW_FC_PORTRAIT

      public static String DO_NOT_AUTO_SHOW_FC_PORTRAIT
    • dialog

      protected InteractionDialogAPI dialog
    • textPanel

      protected TextPanelAPI textPanel
    • options

      protected OptionPanelAPI options
    • visual

      protected VisualPanelAPI visual
    • playerFleet

      protected CampaignFleetAPI playerFleet
    • otherFleet

      protected CampaignFleetAPI otherFleet
    • playerGoal

      protected FleetGoal playerGoal
    • otherGoal

      protected FleetGoal otherGoal
    • currVisualType

    • context

      protected FleetEncounterContext context
    • HIGHLIGHT_COLOR

      protected static final Color HIGHLIGHT_COLOR
    • FRIEND_COLOR

      protected static final Color FRIEND_COLOR
    • ENEMY_COLOR

      protected static final Color ENEMY_COLOR
    • conversationDelegate

      protected RuleBasedInteractionDialogPluginImpl conversationDelegate
    • ongoingBattle

      protected boolean ongoingBattle
    • firstEngagement

      protected boolean firstEngagement
    • joinedBattle

      protected boolean joinedBattle
    • forceEngage

      protected boolean forceEngage
    • shownTooLargeToRetreatMessage

      protected boolean shownTooLargeToRetreatMessage
    • inConversation

      public static boolean inConversation
    • directToComms

      public static boolean directToComms
    • config

    • membersInOrderPreEncounter

      protected List<FleetMemberAPI> membersInOrderPreEncounter
    • pulledIn

      protected List<CampaignFleetAPI> pulledIn
    • lastResult

      protected EngagementResultAPI lastResult
    • cleanedUp

      protected boolean cleanedUp
    • okToLeave

      protected boolean okToLeave
    • didRepairs

      protected boolean didRepairs
    • didBoardingCheck

      protected boolean didBoardingCheck
    • didRecoveryCheck

      protected boolean didRecoveryCheck
    • pickedMemberToBoard

      protected boolean pickedMemberToBoard
    • toBoard

      protected FleetMemberAPI toBoard
    • repairedShipList

      protected String repairedShipList
    • boardingPhase

      protected int boardingPhase
    • boardingPercentSuccess

      protected float boardingPercentSuccess
    • crashMothballList

      protected String crashMothballList
    • maxBoardingParty

      protected CrewCompositionAPI maxBoardingParty
    • boardingParty

      protected CrewCompositionAPI boardingParty
    • boardingResult

      protected FleetEncounterContext.BoardingResult boardingResult
    • selectedFlagship

      protected FleetMemberAPI selectedFlagship
    • origFlagship

      protected FleetMemberAPI origFlagship
    • origCaptains

      protected Map<FleetMemberAPI,PersonAPI> origCaptains
    • aiBoardingResponse

      protected CampaignFleetAIAPI.InitialBoardingResponse aiBoardingResponse
    • shownKnownStatus

      protected boolean shownKnownStatus
    • recoveredCrew

      protected boolean recoveredCrew
    • lootedCredits

      protected boolean lootedCredits
    • firedVictoryTriggers

      protected boolean firedVictoryTriggers
    • creditsLooted

      protected String creditsLooted
    • lastOptionMousedOver

      protected FleetInteractionDialogPluginImpl.OptionId lastOptionMousedOver
    • allyEngagementChoiceNoBattle

      protected boolean allyEngagementChoiceNoBattle
    • harryEndedBattle

      protected boolean harryEndedBattle
  • Constructor Details

  • Method Details

    • getMemoryMap

      public Map<String,MemoryAPI> getMemoryMap()
      Specified by:
      getMemoryMap in interface InteractionDialogPlugin
      Specified by:
      getMemoryMap in interface RuleBasedDialog
    • reinit

      public void reinit(boolean withContinueOnRuleFound)
      Specified by:
      reinit in interface RuleBasedDialog
    • reinitPostContinue

      public void reinitPostContinue()
    • init

      public void init(InteractionDialogAPI dialog)
      Specified by:
      init in interface InteractionDialogPlugin
    • printOngoingBattleInfo

      public void printOngoingBattleInfo()
    • pullInNearbyFleets

      protected void pullInNearbyFleets()
    • backFromEngagement

      public void backFromEngagement(EngagementResultAPI result)
      Specified by:
      backFromEngagement in interface InteractionDialogPlugin
    • addPostBattleAttitudeText

      protected void addPostBattleAttitudeText()
    • getPursuitCapablePlayerShips

      public List<FleetMemberAPI> getPursuitCapablePlayerShips()
    • optionSelected

      public void optionSelected(String text, Object optionData)
      Specified by:
      optionSelected in interface InteractionDialogPlugin
    • rememberWasBeaten

      protected void rememberWasBeaten()
    • restoreOrigCaptains

      protected void restoreOrigCaptains()
    • cleanUpBattle

      public void cleanUpBattle()
    • goToEncounterEndPath

      protected void goToEncounterEndPath()
    • losingPath

      protected void losingPath()
    • winningPath

      protected void winningPath()
    • getCrashMothballable

      protected List<FleetMemberAPI> getCrashMothballable(List<FleetMemberAPI> all)
    • optionMousedOver

      public void optionMousedOver(String optionText, Object optionData)
      Specified by:
      optionMousedOver in interface InteractionDialogPlugin
    • showFleetInfo

      protected void showFleetInfo()
    • advance

      public void advance(float amount)
      Specified by:
      advance in interface InteractionDialogPlugin
    • addText

      protected void addText(String text)
    • addText

      protected void addText(String text, Color color)
    • addText

      protected void addText(String text, String hl, Color hlColor)
    • appendText

      protected void appendText(String text)
    • updateDialogState

      protected void updateDialogState()
    • isValidTransferCommandTarget

      protected boolean isValidTransferCommandTarget(FleetMemberAPI member)
    • updatePreCombat

      protected void updatePreCombat()
    • createShipNameListString

      protected String createShipNameListString(List<FleetMemberAPI> members)
    • updateMainState

      protected void updateMainState(boolean withText)
    • updateEngagementChoice

      protected void updateEngagementChoice(boolean withText)
    • addEmergencyRepairsOption

      protected void addEmergencyRepairsOption()
    • pickPursuitOption

      protected CampaignFleetAIAPI.PursuitOption pickPursuitOption(CampaignFleetAPI fleet, CampaignFleetAPI other, FleetEncounterContext context)
    • getNonHostileOtherFaction

      public FactionAPI getNonHostileOtherFaction()
    • getNonHostileOtherFaction

      public FactionAPI getNonHostileOtherFaction(List<CampaignFleetAPI> otherSide)
    • playerOutBeforeAllies

      protected boolean playerOutBeforeAllies()
    • canDisengage

      public static boolean canDisengage()
    • otherCanDisengage

      protected boolean otherCanDisengage()
    • alliedCanDisengage

      protected boolean alliedCanDisengage()
    • fleetCanDisengage

      protected boolean fleetCanDisengage(CampaignFleetAPI fleet)
    • getDisengageSize

      public static float getDisengageSize()
    • didEnoughToDisengage

      protected boolean didEnoughToDisengage(CampaignFleetAPI fleet)
    • canDisengageCleanly

      protected boolean canDisengageCleanly(CampaignFleetAPI fleet)
    • canDisengageWithoutPursuit

      protected boolean canDisengageWithoutPursuit(CampaignFleetAPI fleet)
    • getPursuitAvailability

      protected FleetEncounterContextPlugin.PursueAvailability getPursuitAvailability(CampaignFleetAPI fleet)
    • getString

      protected String getString(String id)
    • getIntOrNo

      protected String getIntOrNo(float value)
    • getApproximate

      protected String getApproximate(float value)
    • getApproximateNumOnly

      protected String getApproximateNumOnly(float value)
    • isFightingOver

      protected boolean isFightingOver()
    • alliedFleetWantsToFight

      public boolean alliedFleetWantsToFight()
    • otherFleetWantsToFight

      public boolean otherFleetWantsToFight()
    • otherFleetWantsToFight

      public boolean otherFleetWantsToFight(boolean assumeHostile)
    • fleetWantsToFight

      protected boolean fleetWantsToFight(CampaignFleetAPI fleet, CampaignFleetAPI other)
    • fleetWantsToFight

      protected boolean fleetWantsToFight(CampaignFleetAPI fleet, CampaignFleetAPI other, boolean assumeHostile)
    • alliedFleetHoldingVsStrongerEnemy

      protected boolean alliedFleetHoldingVsStrongerEnemy()
    • otherFleetHoldingVsStrongerEnemy

      protected boolean otherFleetHoldingVsStrongerEnemy()
    • fleetHoldingVsStrongerEnemy

      protected boolean fleetHoldingVsStrongerEnemy(CampaignFleetAPI fleet, CampaignFleetAPI other)
    • alliedFleetWantsToDisengage

      protected boolean alliedFleetWantsToDisengage()
    • otherFleetWantsToDisengage

      protected boolean otherFleetWantsToDisengage()
    • fleetWantsToDisengage

      protected boolean fleetWantsToDisengage(CampaignFleetAPI fleet, CampaignFleetAPI other)
    • getContext

      public Object getContext()
      Specified by:
      getContext in interface InteractionDialogPlugin
    • updateMemory

      public void updateMemory()
      Specified by:
      updateMemory in interface RuleBasedDialog
    • notifyActivePersonChanged

      public void notifyActivePersonChanged()
      Specified by:
      notifyActivePersonChanged in interface RuleBasedDialog
    • setActiveMission

      public void setActiveMission(CampaignEventPlugin mission)
      Specified by:
      setActiveMission in interface RuleBasedDialog
    • setPlayerFleet

      public void setPlayerFleet(CampaignFleetAPI playerFleet)