1package com.fs.starfarer.api.impl.campaign.intel.inspection;
6import org.lwjgl.input.Keyboard;
8import com.fs.starfarer.api.Global;
9import com.fs.starfarer.api.campaign.CampaignFleetAPI;
10import com.fs.starfarer.api.campaign.InteractionDialogAPI;
11import com.fs.starfarer.api.campaign.InteractionDialogPlugin;
12import com.fs.starfarer.api.campaign.OptionPanelAPI;
13import com.fs.starfarer.api.campaign.TextPanelAPI;
14import com.fs.starfarer.api.campaign.VisualPanelAPI;
15import com.fs.starfarer.api.campaign.rules.MemoryAPI;
16import com.fs.starfarer.api.combat.EngagementResultAPI;
17import com.fs.starfarer.api.impl.campaign.ids.Sounds;
18import com.fs.starfarer.api.impl.campaign.intel.events.HegemonyHostileActivityFactor;
19import com.fs.starfarer.api.impl.campaign.intel.inspection.HegemonyInspectionIntel.AntiInspectionOrders;
20import com.fs.starfarer.api.impl.campaign.rulecmd.AddRemoveCommodity;
21import com.fs.starfarer.api.impl.campaign.rulecmd.SetStoryOption;
22import com.fs.starfarer.api.ui.IntelUIAPI;
23import com.fs.starfarer.api.util.Misc;
31 private static enum OptionId {
106 textPanel.
addPara(
"Sufficient funding allocated to proper official and unofficial actors should " +
107 "ensure that the inspection reaches a satisfactory outcome.");
110 textPanel.
addPara(
"Once this order is given and the funds and agents dispatched, it can not be " +
122 "and guarantees that your standing with the Hegemony will not suffer.", costColor,
128 textPanel.
addPara(
"You've allocated %s to the task and have otherwise committed to this course of action.",
135 textPanel.
addPara(
"The local authorities will comply with the inspection. This will result " +
136 "in all AI cores being found and confiscated, and will cause your standing with the Hegemony " +
137 "to fall based on the number of AI cores found.");
138 textPanel.
addPara(
"If AI cores currently in use are removed or moved off-planet, this activity will " +
139 "surely leave traces for inspectors to find, inspiring them to much greater zeal.");
142 textPanel.
addPara(
"All space and ground forces available will resist the inspection.");
144 "the ground defense strength will determine whether " +
145 "they're able to confiscate any AI cores.");
146 textPanel.
addPara(
"The Hegemony will become aware of this - and hostile - when the inspection task force " +
147 "enters the star system.");
156 if (curr != AntiInspectionOrders.BRIBE) {
157 options.
addOption(
"Order the local authorities to comply with the inspection", OptionId.COMPLY,
null);
158 options.
addOption(
"Allocate sufficient funds to bribe or otherwise handle the inspectors", OptionId.BRIBE,
null);
159 options.
addOption(
"Order your local forces to resist the inspection", OptionId.RESIST,
null);
167 if (curr == AntiInspectionOrders.COMPLY) {
170 if (curr == AntiInspectionOrders.BRIBE) {
173 if (curr == AntiInspectionOrders.RESIST) {
217 if (optionData ==
null)
return;
219 OptionId option = (OptionId) optionData;
static SectorAPI getSector()
static String STORY_POINT_SPEND_TECHNOLOGY
static int getInspectionAttempts()
AntiInspectionOrders beingConfirmed
HIOrdersInteractionDialogPluginImpl(HegemonyInspectionIntel intel, IntelUIAPI ui)
void advance(float amount)
HegemonyInspectionIntel intel
CampaignFleetAPI playerFleet
void backFromEngagement(EngagementResultAPI result)
InteractionDialogAPI dialog
void printOptionDesc(AntiInspectionOrders orders, boolean inConfirm)
void optionSelected(String text, Object optionData)
void init(InteractionDialogAPI dialog)
void optionMousedOver(String optionText, Object optionData)
Map< String, MemoryAPI > getMemoryMap()
AntiInspectionOrders getOrders()
void setOrders(AntiInspectionOrders orders)
void setInvestedCredits(int investedCredits)
static void addCreditsGainText(int credits, TextPanelAPI text)
static void addCreditsLossText(int credits, TextPanelAPI text)
static boolean set(String ruleId, InteractionDialogAPI dialog, Map< String, MemoryAPI > memoryMap, String params)
static Color getStoryOptionColor()
static String getDGSCredits(float num)
static Color getNegativeHighlightColor()
static Color getHighlightColor()
MutableValue getCredits()
void setOptionColor(Object optionId, Color color)
TextPanelAPI getTextPanel()
VisualPanelAPI getVisualPanel()
void addOptionSelectedText(Object optionId)
void setOptionOnEscape(String text, Object optionId)
OptionPanelAPI getOptionPanel()
void setTooltip(Object data, String tooltipText)
void addOption(String text, Object data)
void setEnabled(Object data, boolean enabled)
void setShortcut(Object data, int code, boolean ctrl, boolean alt, boolean shift, boolean putLast)
CampaignFleetAPI getPlayerFleet()
LabelAPI addPara(String text)
void showPlanetInfo(SectorEntityToken planet)
void setVisualFade(float in, float out)
SectorEntityToken getPrimaryEntity()
void updateUIForItem(IntelInfoPlugin plugin)