Uses of Class
com.fs.starfarer.api.util.WeightedRandomPicker
Packages that use WeightedRandomPicker
Package
Description
-
Uses of WeightedRandomPicker in com.fs.starfarer.api.campaign
Methods in com.fs.starfarer.api.campaign that return WeightedRandomPickerModifier and TypeMethodDescriptionFactionSpecAPI.getCaptainPersonalities()
FactionSpecAPI.getFemalePortraits()
FactionSpecAPI.getMalePortraits()
FactionSpecAPI.getNameCategories()
FactionAPI.getPersonalityPicker()
FactionAPI.getPortraits
(FullName.Gender gender) FactionSpecAPI.getShipNameSources()
FactionSpecAPI.getVoicePickerHigh()
FactionSpecAPI.getVoicePickerLow()
FactionSpecAPI.getVoicePickerMedium()
-
Uses of WeightedRandomPicker in com.fs.starfarer.api.campaign.listeners
Methods in com.fs.starfarer.api.campaign.listeners with parameters of type WeightedRandomPickerModifier and TypeMethodDescriptionstatic void
ListenerUtil.updateSlipstreamConfig
(String prevConfig, WeightedRandomPicker<String> nextConfigPicker, SlipstreamManager manager) void
SlipstreamConfigUpdater.updateSlipstreamConfig
(String prevConfig, WeightedRandomPicker<String> nextConfigPicker, SlipstreamManager manager) -
Uses of WeightedRandomPicker in com.fs.starfarer.api.impl.campaign
Methods in com.fs.starfarer.api.impl.campaign that return WeightedRandomPickerModifier and TypeMethodDescriptionFactionPersonalityPickerPluginImpl.createPersonalityPicker
(FactionAPI faction) -
Uses of WeightedRandomPicker in com.fs.starfarer.api.impl.campaign.enc
Fields in com.fs.starfarer.api.impl.campaign.enc declared as WeightedRandomPickerModifier and TypeFieldDescriptionstatic WeightedRandomPicker<String>
AbyssalRogueStellarObjectEPEC.BLACK_HOLE_TYPES
AbyssalRogueStellarObjectDireHintsEPEC.DIRE_HINT_TYPES
static WeightedRandomPicker<String>
AbyssalRogueStellarObjectEPEC.GAS_GIANT_TYPES
static WeightedRandomPicker<String>
AbyssalRogueStellarObjectEPEC.PLANETOID_TYPES
AbyssalRogueStellarObjectEPEC.STELLAR_OBJECT_TYPES
-
Uses of WeightedRandomPicker in com.fs.starfarer.api.impl.campaign.fleets
Methods in com.fs.starfarer.api.impl.campaign.fleets that return WeightedRandomPickerModifier and TypeMethodDescriptionstatic WeightedRandomPicker<ShipAPI.HullSize>
FleetFactoryV3.makePicker
(int[] ratio, Random random) Methods in com.fs.starfarer.api.impl.campaign.fleets with parameters of type WeightedRandomPickerModifier and TypeMethodDescriptionstatic boolean
FleetFactoryV3.addShips
(WeightedRandomPicker<String> rolePicker, Set<String> usePriorityOnly, Map<String, FleetFactoryV3.FPRemaining> remaining, FleetFactoryV3.FPRemaining remOverride, int count, CampaignFleetAPI fleet, Random random, FleetParamsV3 params) -
Uses of WeightedRandomPicker in com.fs.starfarer.api.impl.campaign.intel
Fields in com.fs.starfarer.api.impl.campaign.intel declared as WeightedRandomPickerModifier and TypeFieldDescriptionprotected WeightedRandomPicker<SectorEntityToken>
AnalyzeEntityIntelCreator.entityPicker
protected WeightedRandomPicker<PlanetAPI>
SurveyPlanetIntelCreator.planetPicker
-
Uses of WeightedRandomPicker in com.fs.starfarer.api.impl.campaign.missions
Fields in com.fs.starfarer.api.impl.campaign.missions declared as WeightedRandomPicker -
Uses of WeightedRandomPicker in com.fs.starfarer.api.impl.campaign.procgen
Fields in com.fs.starfarer.api.impl.campaign.procgen with type parameters of type WeightedRandomPickerModifier and TypeFieldDescriptionstatic Map<String,
WeightedRandomPicker<String>> StarSystemGenerator.backgroundsByNebulaType
Methods in com.fs.starfarer.api.impl.campaign.procgen that return WeightedRandomPickerModifier and TypeMethodDescriptionSalvageEntityGenDataSpec.DropData.getCustom()
static WeightedRandomPicker<String>
PlanetConditionGenerator.getGroupPicker
(String group, Set<String> conditionsSoFar, StarSystemGenerator.GenContext context, PlanetAPI planet) static WeightedRandomPicker<DropGroupRow>
protected WeightedRandomPicker<EntityGenDataSpec>
StarSystemGenerator.getPickerForCategory
(CategoryGenDataSpec categoryData, StarSystemGenerator.GenContext context, String extraMult) protected WeightedRandomPicker<EntityGenDataSpec>
StarSystemGenerator.getPickerForCategory
(CategoryGenDataSpec categoryData, StarSystemGenerator.GenContext context, String extraMult, boolean nothingOk) -
Uses of WeightedRandomPicker in com.fs.starfarer.api.impl.campaign.procgen.themes
Methods in com.fs.starfarer.api.impl.campaign.procgen.themes that return WeightedRandomPickerModifier and TypeMethodDescriptionBaseThemeGenerator.createStringPicker
(Object... params) static WeightedRandomPicker<String>
BaseThemeGenerator.createStringPicker
(Random random, Object... params) static WeightedRandomPicker<String>
SalvageSpecialAssigner.getHabCargo
(Random random) static WeightedRandomPicker<String>
SalvageSpecialAssigner.getIndustryCargo
(Random random) BaseThemeGenerator.getLocations
(Random random, StarSystemAPI system, float minGap, LinkedHashMap<BaseThemeGenerator.LocationType, Float> weights) BaseThemeGenerator.getLocations
(Random random, StarSystemAPI system, Set<SectorEntityToken> exclude, float minGap, LinkedHashMap<BaseThemeGenerator.LocationType, Float> weights) static WeightedRandomPicker<String>
SalvageSpecialAssigner.getNearbyFactions
(Random random, SectorEntityToken entity) static WeightedRandomPicker<String>
SalvageSpecialAssigner.getNearbyFactions
(Random random, SectorEntityToken entity, float rangeLY, float indWeight, float pirateWeight) static WeightedRandomPicker<String>
SalvageSpecialAssigner.getNearbyFactions
(Random random, org.lwjgl.util.vector.Vector2f locationInHyper, float rangeLY, float indWeight, float pirateWeight) static WeightedRandomPicker<String>
SalvageSpecialAssigner.getValuableCargo
(Random random) Methods in com.fs.starfarer.api.impl.campaign.procgen.themes with parameters of type WeightedRandomPickerModifier and TypeMethodDescriptionRemnantThemeGenerator.addBattlestations
(BaseThemeGenerator.StarSystemData data, float chanceToAddAny, int min, int max, WeightedRandomPicker<String> stationTypes) void
BaseThemeGenerator.addCaches
(BaseThemeGenerator.StarSystemData data, float chanceToAddAny, int min, int max, WeightedRandomPicker<String> cacheTypes) void
BaseThemeGenerator.addDerelictShip
(BaseThemeGenerator.StarSystemData data, BaseThemeGenerator.EntityLocation loc, WeightedRandomPicker<String> factions) void
BaseThemeGenerator.addDerelictShips
(BaseThemeGenerator.StarSystemData data, float chanceToAddAny, int min, int max, WeightedRandomPicker<String> factions) BaseThemeGenerator.addEntity
(Random random, StarSystemAPI system, WeightedRandomPicker<BaseThemeGenerator.EntityLocation> locs, String type, String faction) void
BaseThemeGenerator.addHabCenters
(BaseThemeGenerator.StarSystemData data, float chanceToAddAny, int min, int max, WeightedRandomPicker<String> stationTypes) BaseThemeGenerator.addInactiveGate
(BaseThemeGenerator.StarSystemData data, float prob, float probDebris, float probShips, WeightedRandomPicker<String> factions) void
BaseThemeGenerator.addMiningStations
(BaseThemeGenerator.StarSystemData data, float chanceToAddAny, int min, int max, WeightedRandomPicker<String> stationTypes) void
BaseThemeGenerator.addResearchStations
(BaseThemeGenerator.StarSystemData data, float chanceToAddAny, int min, int max, WeightedRandomPicker<String> stationTypes) void
BaseThemeGenerator.addShipGraveyard
(BaseThemeGenerator.StarSystemData data, float chanceToAddAny, int min, int max, WeightedRandomPicker<String> factions) void
BaseThemeGenerator.addShipGraveyard
(BaseThemeGenerator.StarSystemData data, SectorEntityToken focus, WeightedRandomPicker<String> factions) void
BaseThemeGenerator.addShipGraveyard
(BaseThemeGenerator.StarSystemData data, SectorEntityToken focus, WeightedRandomPicker<String> factions, WeightedRandomPicker<String> hulls) Constructors in com.fs.starfarer.api.impl.campaign.procgen.themes with parameters of type WeightedRandomPickerModifierConstructorDescriptionCargoManifestSpecialCreator
(Random random, WeightedRandomPicker<String> cargoPicker, float min, float max) ShipRecoverySpecialCreator
(Random random, int min, int max, boolean badCondition, DerelictShipEntityPlugin.DerelictType type, WeightedRandomPicker<String> factionPicker) SleeperPodsSpecialCreator
(Random random, SleeperPodsSpecial.SleeperSpecialType type, float min, float max, WeightedRandomPicker<String> officerFactions) TransmitterTrapSpecialCreator
(Random random, float chance, String fleetType, WeightedRandomPicker<String> factionPicker, int min, int max) -
Uses of WeightedRandomPicker in com.fs.starfarer.api.impl.campaign.rulecmd.salvage.special
Fields in com.fs.starfarer.api.impl.campaign.rulecmd.salvage.special declared as WeightedRandomPickerModifier and TypeFieldDescriptionCryopodOfficerGen.TEMPLATES_EXCEPTIONAL
CryopodOfficerGen.TEMPLATES_NORMAL
-
Uses of WeightedRandomPicker in com.fs.starfarer.api.impl.campaign.submarkets
Methods in com.fs.starfarer.api.impl.campaign.submarkets with parameters of type WeightedRandomPickerModifier and TypeMethodDescriptionprotected void
BaseSubmarketPlugin.addFighters
(int min, int max, int maxTier, WeightedRandomPicker<String> factionPicker) protected void
BaseSubmarketPlugin.addWeapons
(int min, int max, int maxTier, WeightedRandomPicker<String> factionPicker) protected void
BaseSubmarketPlugin.addWeapons
(int min, int max, int maxTier, WeightedRandomPicker<String> factionPicker, boolean withCategories) protected void
BaseSubmarketPlugin.pickAndAddWeapons
(WeightedRandomPicker<WeaponSpecAPI> picker) -
Uses of WeightedRandomPicker in com.fs.starfarer.api.impl.combat
Fields in com.fs.starfarer.api.impl.combat declared as WeightedRandomPickerModifier and TypeFieldDescriptionprotected WeightedRandomPicker<WeaponSlotAPI>
MoteControlScript.launchSlots
-
Uses of WeightedRandomPicker in com.fs.starfarer.api.impl.combat.threat
Fields in com.fs.starfarer.api.impl.combat.threat declared as WeightedRandomPickerModifier and TypeFieldDescriptionprotected WeightedRandomPicker<WeaponSlotAPI>
ConstructionSwarmSystemScript.slots
Methods in com.fs.starfarer.api.impl.combat.threat that return WeightedRandomPickerModifier and TypeMethodDescriptionRoilingSwarmEffect.getPicker
(boolean preferNonFlashing, boolean preferNonPicked) RoilingSwarmEffect.getPicker
(boolean preferNonFlashing, boolean preferNonPicked, org.lwjgl.util.vector.Vector2f towards) RoilingSwarmEffect.getPicker
(boolean preferNonFlashing, boolean preferNonPicked, org.lwjgl.util.vector.Vector2f point, float preferMaxRangeFromPoint) EnergyLashSystemAI.getWeightedTargets
(ShipAPI shipTarget) -
Uses of WeightedRandomPicker in com.fs.starfarer.api.impl.hullmods
Fields in com.fs.starfarer.api.impl.hullmods with type parameters of type WeightedRandomPickerMethods in com.fs.starfarer.api.impl.hullmods that return WeightedRandomPickerModifier and TypeMethodDescriptionShardSpawner.ShardTypeVariants.get
(ShardSpawner.ShardType type) ShardSpawner.getSpawnAngles
(int iter) ShardSpawner.getTypePickerBasedOnLocalConditions
(ShipAPI ship) -
Uses of WeightedRandomPicker in com.fs.starfarer.api.plugins
Methods in com.fs.starfarer.api.plugins that return WeightedRandomPickerModifier and TypeMethodDescriptionFactionPersonalityPickerPlugin.createPersonalityPicker
(FactionAPI faction) -
Uses of WeightedRandomPicker in com.fs.starfarer.api.util
Methods in com.fs.starfarer.api.util that return WeightedRandomPickerModifier and TypeMethodDescriptionWeightedRandomPicker.clone()
static WeightedRandomPicker<String>
Misc.createStringPicker
(Object... params) static WeightedRandomPicker<String>
Misc.createStringPicker
(Random random, Object... params) Methods in com.fs.starfarer.api.util with parameters of type WeightedRandomPickerModifier and TypeMethodDescriptionvoid
WeightedRandomPicker.addAll
(WeightedRandomPicker<T> other)