Package com.fs.starfarer.api.impl
Class SimulatorPluginImpl
java.lang.Object
com.fs.starfarer.api.impl.SimulatorPluginImpl
- All Implemented Interfaces:
AutofitPlugin.AutofitPluginDelegate
,SimulatorPlugin
public class SimulatorPluginImpl
extends Object
implements SimulatorPlugin, AutofitPlugin.AutofitPluginDelegate
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.fs.starfarer.api.plugins.SimulatorPlugin
SimulatorPlugin.AdvancedSimOption, SimulatorPlugin.SimCategoryData, SimulatorPlugin.SimOptionCheckboxData, SimulatorPlugin.SimOptionData, SimulatorPlugin.SimOptionSelectorData, SimulatorPlugin.SimUIStateData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static boolean
static String
protected boolean
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static boolean
static boolean
static String
protected SimulatorPlugin.SimUIStateData
static String
protected SimulatorPluginImpl.SimUnlocksData
Fields inherited from interface com.fs.starfarer.api.plugins.SimulatorPlugin
DEFAULT_PAD_AFTER, ENABLE_OPTION_CHECKBOX_ICONS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomOpponents
(List<String> variants) void
appendToTooltip
(TooltipMakerAPI info, float initPad, float width, SimulatorPlugin.AdvancedSimOption option, Object extra) void
applySettingsToDeployed
(List<DeployedFleetMemberAPI> deployed, Map<String, String> settings) void
applySettingsToFleetMembers
(List<FleetMemberAPI> members, SimulatorPlugin.SimCategoryData category, Map<String, String> settings) boolean
void
void
clearFighterSlot
(int index, ShipVariantAPI variant) void
clearWeaponSlot
(WeaponSlotAPI slot, ShipVariantAPI variant) boolean
coreReqsMet
(String coreId) static FactionAPI
findBestMatchingFaction
(String fleetFactionId, List<FleetMemberAPI> members) void
fitFighterInSlot
(int index, AutofitPlugin.AvailableFighter fighter, ShipVariantAPI variant) void
fitWeaponInSlot
(WeaponSlotAPI slot, AutofitPlugin.AvailableWeapon weapon, ShipVariantAPI variant) generateSelection
(SimulatorPlugin.SimCategoryData category, int deploymentPoints) getCoreId
(FleetMemberAPI member) static float
getDP
(CampaignFleetAPI fleet) getShip()
getSimOptions
(SimulatorPlugin.SimCategoryData category) getStockVariantId
(FleetMemberAPI member) getVariantIDList
(List<ShipVariantAPI> variantList) static List<ShipVariantAPI>
getVariantList
(Set<String> variants) getVariants
(FactionSpecAPI spec, boolean withCiv, boolean onlyCiv, boolean forceFullUnlock) boolean
isAcceptableSimVariant
(ShipVariantAPI v, boolean forLearning) boolean
static boolean
boolean
boolean
isPriority
(FighterWingSpecAPI wing) boolean
isPriority
(WeaponSpecAPI weapon) boolean
static boolean
static boolean
void
void
void
static void
void
pruneAICoresToAvailable
(List<FleetMemberAPI> members) static void
pruneFleetDownToDP
(CampaignFleetAPI fleet, float targetDP, Random random) void
removeCustomOpponents
(List<String> variants) void
reportPlayerBattleOccurred
(CampaignFleetAPI primaryWinner, BattleAPI battle) void
resetToDefaults
(boolean withSave) void
void
void
boolean
static List<ShipVariantAPI>
sortVariantList
(List<ShipVariantAPI> variantList) void
syncUIWithVariant
(ShipVariantAPI variant)
-
Field Details
-
INCLUDE_PLAYER_BLUEPRINTS
public static boolean INCLUDE_PLAYER_BLUEPRINTS -
REQUIRE_AI_CORES
public static boolean REQUIRE_AI_CORES -
REQUIRE_AI_CORES_IN_CARGO
public static boolean REQUIRE_AI_CORES_IN_CARGO -
UNLOCKS_DATA_FILE
-
CUSTOM_OPPONENTS_FILE
-
UI_STATE_DATA_FILE
-
DEFAULT_CAT_ID
-
CUSTOM_CAT_ID
-
OTHER_CAT_ID
-
CIV_CAT_ID
-
DEV_CAT_ID
-
AGGRO_ID
-
AGGRO_ID_CORES_ONLY
-
AGGRO_DEFAULT
-
AGGRO_CAUTIOUS
-
AGGRO_STEADY
-
AGGRO_AGGRESSIVE
-
AGGRO_RECKLESS
-
AGGRO_NORMAL
-
AGGRO_DO_NOTHING
-
AGGRO_DEFENSES
-
AGGRO_STATIONARY
-
OFFICERS_CUSTOM_ID
-
OFFICERS_CUSTOM_NONE
-
OFFICERS_CUSTOM_SOME
-
OFFICERS_CUSTOM_5
-
OFFICERS_CUSTOM_6
-
OFFICERS_ID
-
OFFICERS_NONE
-
OFFICERS_DEFAULT
-
OFFICERS_ALL
-
QUALITY_ID
-
QUALITY_MAX_DMODS
-
QUALITY_SOME_DMODS
-
QUALITY_NO_DMODS
-
QUALITY_SOME_SDMODS
-
QUALITY_MANY_SMODS
-
AI_CORES_ID
-
AI_CORES_DERELICT_ID
-
AI_CORES_OMEGA_ID
-
AI_CORES_DEV_ID
-
AI_CORES_NONE
-
AI_CORES_SOME
-
AI_CORES_GAMMA
-
AI_CORES_BETA
-
AI_CORES_ALPHA
-
AI_CORES_OMEGA
-
RANDOMIZE_VARIANTS_ID
-
INTEGRATE_CORES_ID
-
uiStateData
-
defaultOpponents
-
customOpponents
-
loadedStuff
protected boolean loadedStuff -
unlocksData
-
-
Constructor Details
-
SimulatorPluginImpl
public SimulatorPluginImpl()
-
-
Method Details
-
isShowDevCategories
public static boolean isShowDevCategories() -
isSimFullyUnlocked
public static boolean isSimFullyUnlocked() -
isAllStandardStuffUnlocked
public static boolean isAllStandardStuffUnlocked() -
coreReqsMet
-
isRequireAICoresInCargo
public boolean isRequireAICoresInCargo() -
addCustomOpponents
- Specified by:
addCustomOpponents
in interfaceSimulatorPlugin
-
removeCustomOpponents
- Specified by:
removeCustomOpponents
in interfaceSimulatorPlugin
-
clearCustomOpponents
public void clearCustomOpponents() -
loadCustomOpponents
public void loadCustomOpponents()- Specified by:
loadCustomOpponents
in interfaceSimulatorPlugin
-
saveCustomOpponents
public void saveCustomOpponents()- Specified by:
saveCustomOpponents
in interfaceSimulatorPlugin
-
resetToDefaults
public void resetToDefaults(boolean withSave) - Specified by:
resetToDefaults
in interfaceSimulatorPlugin
-
loadUIStateData
public void loadUIStateData()- Specified by:
loadUIStateData
in interfaceSimulatorPlugin
-
saveUIStateData
public void saveUIStateData()- Specified by:
saveUIStateData
in interfaceSimulatorPlugin
-
getUIStateData
- Specified by:
getUIStateData
in interfaceSimulatorPlugin
-
loadUnlocksData
public void loadUnlocksData() -
saveUnlocksData
public void saveUnlocksData() -
getUnlocksData
-
getSimOptions
public List<SimulatorPlugin.AdvancedSimOption> getSimOptions(SimulatorPlugin.SimCategoryData category) - Specified by:
getSimOptions
in interfaceSimulatorPlugin
-
showGroupDeploymentWidget
- Specified by:
showGroupDeploymentWidget
in interfaceSimulatorPlugin
-
getCustomCategory
- Specified by:
getCustomCategory
in interfaceSimulatorPlugin
-
getCategories
- Specified by:
getCategories
in interfaceSimulatorPlugin
-
getVariants
public List<String> getVariants(FactionSpecAPI spec, boolean withCiv, boolean onlyCiv, boolean forceFullUnlock) -
getVariantList
-
getVariantIDList
-
sortVariantList
-
getAllRoles
-
applySettingsToFleetMembers
public void applySettingsToFleetMembers(List<FleetMemberAPI> members, SimulatorPlugin.SimCategoryData category, Map<String, String> settings) - Specified by:
applySettingsToFleetMembers
in interfaceSimulatorPlugin
-
applySettingsToDeployed
public void applySettingsToDeployed(List<DeployedFleetMemberAPI> deployed, Map<String, String> settings) - Specified by:
applySettingsToDeployed
in interfaceSimulatorPlugin
-
createCustomFaction
-
makeFleetCommanderNormalOfficer
-
generateSelection
public List<String> generateSelection(SimulatorPlugin.SimCategoryData category, int deploymentPoints) - Specified by:
generateSelection
in interfaceSimulatorPlugin
-
fitFighterInSlot
public void fitFighterInSlot(int index, AutofitPlugin.AvailableFighter fighter, ShipVariantAPI variant) - Specified by:
fitFighterInSlot
in interfaceAutofitPlugin.AutofitPluginDelegate
-
clearFighterSlot
- Specified by:
clearFighterSlot
in interfaceAutofitPlugin.AutofitPluginDelegate
-
fitWeaponInSlot
public void fitWeaponInSlot(WeaponSlotAPI slot, AutofitPlugin.AvailableWeapon weapon, ShipVariantAPI variant) - Specified by:
fitWeaponInSlot
in interfaceAutofitPlugin.AutofitPluginDelegate
-
clearWeaponSlot
- Specified by:
clearWeaponSlot
in interfaceAutofitPlugin.AutofitPluginDelegate
-
getAvailableWeapons
- Specified by:
getAvailableWeapons
in interfaceAutofitPlugin.AutofitPluginDelegate
-
getAvailableFighters
- Specified by:
getAvailableFighters
in interfaceAutofitPlugin.AutofitPluginDelegate
-
isPriority
- Specified by:
isPriority
in interfaceAutofitPlugin.AutofitPluginDelegate
-
isPriority
- Specified by:
isPriority
in interfaceAutofitPlugin.AutofitPluginDelegate
-
syncUIWithVariant
- Specified by:
syncUIWithVariant
in interfaceAutofitPlugin.AutofitPluginDelegate
-
getShip
- Specified by:
getShip
in interfaceAutofitPlugin.AutofitPluginDelegate
-
getFaction
- Specified by:
getFaction
in interfaceAutofitPlugin.AutofitPluginDelegate
-
isAllowSlightRandomization
public boolean isAllowSlightRandomization()- Specified by:
isAllowSlightRandomization
in interfaceAutofitPlugin.AutofitPluginDelegate
-
isPlayerCampaignRefit
public boolean isPlayerCampaignRefit()- Specified by:
isPlayerCampaignRefit
in interfaceAutofitPlugin.AutofitPluginDelegate
-
canAddRemoveHullmodInPlayerCampaignRefit
- Specified by:
canAddRemoveHullmodInPlayerCampaignRefit
in interfaceAutofitPlugin.AutofitPluginDelegate
-
getAvailableHullmods
- Specified by:
getAvailableHullmods
in interfaceAutofitPlugin.AutofitPluginDelegate
-
pruneFleetDownToDP
-
getDP
-
reportPlayerBattleOccurred
- Specified by:
reportPlayerBattleOccurred
in interfaceSimulatorPlugin
-
isAcceptableSimVariant
-
getStockVariantId
-
findBestMatchingFaction
-
pruneAICoresToAvailable
-
getCoreId
-
getAvailableMinusDeployedAICores
-
getDeployedAICores
-
getAvailableAICores
-
appendToTooltip
public void appendToTooltip(TooltipMakerAPI info, float initPad, float width, SimulatorPlugin.AdvancedSimOption option, Object extra) - Specified by:
appendToTooltip
in interfaceSimulatorPlugin
-
getMarket
- Specified by:
getMarket
in interfaceAutofitPlugin.AutofitPluginDelegate
-
getFleetMember
- Specified by:
getFleetMember
in interfaceAutofitPlugin.AutofitPluginDelegate
-