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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static interface
static interface
static enum
protected static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected CrewCompositionAPI
protected float
protected int
protected FleetEncounterContext.BoardingResult
protected boolean
protected FleetEncounterContext
protected RuleBasedInteractionDialogPluginImpl
protected String
protected String
protected InteractionDialogAPI
protected boolean
protected boolean
protected boolean
static boolean
static String
static float
protected static final Color
protected boolean
protected boolean
protected boolean
protected static final Color
protected boolean
protected static final Color
static boolean
protected boolean
protected EngagementResultAPI
protected boolean
protected CrewCompositionAPI
protected List<FleetMemberAPI>
protected boolean
protected boolean
protected OptionPanelAPI
protected Map<FleetMemberAPI,
PersonAPI> protected FleetMemberAPI
protected CampaignFleetAPI
protected FleetGoal
protected boolean
protected CampaignFleetAPI
protected FleetGoal
protected List<CampaignFleetAPI>
protected boolean
protected String
protected FleetMemberAPI
protected boolean
protected boolean
protected TextPanelAPI
protected FleetMemberAPI
protected VisualPanelAPI
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
protected void
protected void
void
advance
(float amount) protected boolean
protected boolean
protected boolean
boolean
protected void
appendText
(String text) void
static boolean
protected boolean
protected boolean
void
protected String
createShipNameListString
(List<FleetMemberAPI> members) protected boolean
protected boolean
protected boolean
fleetHoldingVsStrongerEnemy
(CampaignFleetAPI fleet, CampaignFleetAPI other) protected boolean
fleetWantsToDisengage
(CampaignFleetAPI fleet, CampaignFleetAPI other) protected boolean
fleetWantsToFight
(CampaignFleetAPI fleet, CampaignFleetAPI other) protected boolean
fleetWantsToFight
(CampaignFleetAPI fleet, CampaignFleetAPI other, boolean assumeHostile) protected String
getApproximate
(float value) protected String
getApproximateNumOnly
(float value) protected List<FleetMemberAPI>
static float
protected String
getIntOrNo
(float value) getNonHostileOtherFaction
(List<CampaignFleetAPI> otherSide) protected String
protected void
void
init
(InteractionDialogAPI dialog) protected boolean
protected boolean
protected void
void
void
optionMousedOver
(String optionText, Object optionData) void
optionSelected
(String text, Object optionData) protected boolean
protected boolean
protected boolean
boolean
boolean
otherFleetWantsToFight
(boolean assumeHostile) protected CampaignFleetAIAPI.PursuitOption
pickPursuitOption
(CampaignFleetAPI fleet, CampaignFleetAPI other, FleetEncounterContext context) protected boolean
void
protected void
void
reinit
(boolean withContinueOnRuleFound) void
protected void
protected void
void
setActiveMission
(CampaignEventPlugin mission) void
setPlayerFleet
(CampaignFleetAPI playerFleet) protected void
protected void
protected void
updateEngagementChoice
(boolean withText) protected void
updateMainState
(boolean withText) void
protected void
protected void
-
Field Details
-
EMERGENCY_REPAIRS_MAX_DP
public static float EMERGENCY_REPAIRS_MAX_DP -
DO_NOT_AUTO_SHOW_FC_PORTRAIT
-
dialog
-
textPanel
-
options
-
visual
-
playerFleet
-
otherFleet
-
playerGoal
-
otherGoal
-
currVisualType
-
context
-
HIGHLIGHT_COLOR
-
FRIEND_COLOR
-
ENEMY_COLOR
-
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
-
pulledIn
-
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
-
repairedShipList
-
boardingPhase
protected int boardingPhase -
boardingPercentSuccess
protected float boardingPercentSuccess -
crashMothballList
-
maxBoardingParty
-
boardingParty
-
boardingResult
-
selectedFlagship
-
origFlagship
-
origCaptains
-
aiBoardingResponse
-
shownKnownStatus
protected boolean shownKnownStatus -
recoveredCrew
protected boolean recoveredCrew -
lootedCredits
protected boolean lootedCredits -
firedVictoryTriggers
protected boolean firedVictoryTriggers -
creditsLooted
-
lastOptionMousedOver
-
allyEngagementChoiceNoBattle
protected boolean allyEngagementChoiceNoBattle -
harryEndedBattle
protected boolean harryEndedBattle
-
-
Constructor Details
-
FleetInteractionDialogPluginImpl
public FleetInteractionDialogPluginImpl() -
FleetInteractionDialogPluginImpl
-
-
Method Details
-
getMemoryMap
- Specified by:
getMemoryMap
in interfaceInteractionDialogPlugin
- Specified by:
getMemoryMap
in interfaceRuleBasedDialog
-
reinit
public void reinit(boolean withContinueOnRuleFound) - Specified by:
reinit
in interfaceRuleBasedDialog
-
reinitPostContinue
public void reinitPostContinue() -
init
- Specified by:
init
in interfaceInteractionDialogPlugin
-
printOngoingBattleInfo
public void printOngoingBattleInfo() -
pullInNearbyFleets
protected void pullInNearbyFleets() -
backFromEngagement
- Specified by:
backFromEngagement
in interfaceInteractionDialogPlugin
-
addPostBattleAttitudeText
protected void addPostBattleAttitudeText() -
getPursuitCapablePlayerShips
-
optionSelected
- Specified by:
optionSelected
in interfaceInteractionDialogPlugin
-
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
-
optionMousedOver
- Specified by:
optionMousedOver
in interfaceInteractionDialogPlugin
-
showFleetInfo
protected void showFleetInfo() -
advance
public void advance(float amount) - Specified by:
advance
in interfaceInteractionDialogPlugin
-
addText
-
addText
-
addText
-
appendText
-
updateDialogState
protected void updateDialogState() -
isValidTransferCommandTarget
-
updatePreCombat
protected void updatePreCombat() -
createShipNameListString
-
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
-
getNonHostileOtherFaction
-
playerOutBeforeAllies
protected boolean playerOutBeforeAllies() -
canDisengage
public static boolean canDisengage() -
otherCanDisengage
protected boolean otherCanDisengage() -
alliedCanDisengage
protected boolean alliedCanDisengage() -
fleetCanDisengage
-
getDisengageSize
public static float getDisengageSize() -
didEnoughToDisengage
-
canDisengageCleanly
-
canDisengageWithoutPursuit
-
getPursuitAvailability
protected FleetEncounterContextPlugin.PursueAvailability getPursuitAvailability(CampaignFleetAPI fleet) -
getString
-
getIntOrNo
-
getApproximate
-
getApproximateNumOnly
-
isFightingOver
protected boolean isFightingOver() -
alliedFleetWantsToFight
public boolean alliedFleetWantsToFight() -
otherFleetWantsToFight
public boolean otherFleetWantsToFight() -
otherFleetWantsToFight
public boolean otherFleetWantsToFight(boolean assumeHostile) -
fleetWantsToFight
-
fleetWantsToFight
protected boolean fleetWantsToFight(CampaignFleetAPI fleet, CampaignFleetAPI other, boolean assumeHostile) -
alliedFleetHoldingVsStrongerEnemy
protected boolean alliedFleetHoldingVsStrongerEnemy() -
otherFleetHoldingVsStrongerEnemy
protected boolean otherFleetHoldingVsStrongerEnemy() -
fleetHoldingVsStrongerEnemy
-
alliedFleetWantsToDisengage
protected boolean alliedFleetWantsToDisengage() -
otherFleetWantsToDisengage
protected boolean otherFleetWantsToDisengage() -
fleetWantsToDisengage
-
getContext
- Specified by:
getContext
in interfaceInteractionDialogPlugin
-
updateMemory
public void updateMemory()- Specified by:
updateMemory
in interfaceRuleBasedDialog
-
notifyActivePersonChanged
public void notifyActivePersonChanged()- Specified by:
notifyActivePersonChanged
in interfaceRuleBasedDialog
-
setActiveMission
- Specified by:
setActiveMission
in interfaceRuleBasedDialog
-
setPlayerFleet
-