public class DefaultFleetInflater extends java.lang.Object implements FleetInflater, AutofitPlugin.AutofitPluginDelegate
Modifier and Type | Class and Description |
---|---|
static class |
DefaultFleetInflater.AvailableFighterImpl |
static class |
DefaultFleetInflater.AvailableWeaponImpl |
static class |
DefaultFleetInflater.SortedWeapons |
static class |
DefaultFleetInflater.WeaponsForSize |
static class |
DefaultFleetInflater.WeaponsForTier |
Modifier and Type | Field and Description |
---|---|
protected FleetMemberAPI |
currMember |
protected ShipVariantAPI |
currVariant |
protected FactionAPI |
faction |
protected java.util.List<AutofitPlugin.AvailableFighter> |
fighters |
protected CampaignFleetAPI |
fleet |
static float |
GOAL_VARIANT_PROBABILITY |
protected java.util.List<java.lang.String> |
hullmods |
protected DefaultFleetInflaterParams |
p |
protected java.util.List<AutofitPlugin.AvailableWeapon> |
weapons |
Constructor and Description |
---|
DefaultFleetInflater(DefaultFleetInflaterParams p) |
Modifier and Type | Method and Description |
---|---|
boolean |
canAddRemoveHullmodInPlayerCampaignRefit(java.lang.String modId) |
void |
clearFighterSlot(int index,
ShipVariantAPI variant) |
void |
clearWeaponSlot(WeaponSlotAPI slot,
ShipVariantAPI variant) |
void |
fitFighterInSlot(int index,
AutofitPlugin.AvailableFighter fighter,
ShipVariantAPI variant) |
void |
fitWeaponInSlot(WeaponSlotAPI slot,
AutofitPlugin.AvailableWeapon weapon,
ShipVariantAPI variant) |
java.util.List<AutofitPlugin.AvailableFighter> |
getAvailableFighters() |
java.util.List<java.lang.String> |
getAvailableHullmods() |
java.util.List<AutofitPlugin.AvailableWeapon> |
getAvailableWeapons() |
static float |
getAverageDmodsForQuality(float quality) |
int |
getAverageNumSMods() |
FactionAPI |
getFaction() |
static int |
getMaxSMods(ShipVariantAPI variant,
int averageSMods,
java.util.Random random) |
FleetMemberAPI |
getMember() |
static int |
getNumDModsToAdd(ShipVariantAPI variant,
float averageDMods,
java.util.Random random) |
java.lang.Object |
getParams() |
java.lang.Boolean |
getPersistent() |
float |
getQuality() |
java.lang.Long |
getSeed() |
ShipAPI |
getShip() |
static float |
getTierProbability(int tier,
float quality) |
java.lang.Long |
getTimestamp() |
void |
inflate(CampaignFleetAPI fleet) |
boolean |
isAllowSlightRandomization() |
boolean |
isPlayerCampaignRefit() |
boolean |
isPriority(FighterWingSpecAPI wing) |
boolean |
isPriority(WeaponSpecAPI weapon) |
static void |
main(java.lang.String[] args) |
static java.util.Set<java.lang.Integer> |
makePicks(int num,
int max,
java.util.Random random) |
boolean |
removeAfterInflating() |
void |
setPersistent(java.lang.Boolean persistent) |
void |
setQuality(float quality) |
void |
setRemoveAfterInflating(boolean removeAfterInflating) |
void |
setSeed(java.lang.Long seed) |
void |
setTimestamp(java.lang.Long timestamp) |
void |
syncUIWithVariant(ShipVariantAPI variant) |
public static float GOAL_VARIANT_PROBABILITY
protected DefaultFleetInflaterParams p
protected transient FleetMemberAPI currMember
protected transient ShipVariantAPI currVariant
protected transient java.util.List<AutofitPlugin.AvailableFighter> fighters
protected transient java.util.List<AutofitPlugin.AvailableWeapon> weapons
protected transient java.util.List<java.lang.String> hullmods
protected transient CampaignFleetAPI fleet
protected transient FactionAPI faction
public DefaultFleetInflater(DefaultFleetInflaterParams p)
public static float getTierProbability(int tier, float quality)
public void inflate(CampaignFleetAPI fleet)
inflate
in interface FleetInflater
public static int getNumDModsToAdd(ShipVariantAPI variant, float averageDMods, java.util.Random random)
public static int getMaxSMods(ShipVariantAPI variant, int averageSMods, java.util.Random random)
public static float getAverageDmodsForQuality(float quality)
public static java.util.Set<java.lang.Integer> makePicks(int num, int max, java.util.Random random)
public boolean removeAfterInflating()
removeAfterInflating
in interface FleetInflater
public void setRemoveAfterInflating(boolean removeAfterInflating)
setRemoveAfterInflating
in interface FleetInflater
public void clearFighterSlot(int index, ShipVariantAPI variant)
clearFighterSlot
in interface AutofitPlugin.AutofitPluginDelegate
public void clearWeaponSlot(WeaponSlotAPI slot, ShipVariantAPI variant)
clearWeaponSlot
in interface AutofitPlugin.AutofitPluginDelegate
public void fitFighterInSlot(int index, AutofitPlugin.AvailableFighter fighter, ShipVariantAPI variant)
fitFighterInSlot
in interface AutofitPlugin.AutofitPluginDelegate
public void fitWeaponInSlot(WeaponSlotAPI slot, AutofitPlugin.AvailableWeapon weapon, ShipVariantAPI variant)
fitWeaponInSlot
in interface AutofitPlugin.AutofitPluginDelegate
public java.util.List<AutofitPlugin.AvailableFighter> getAvailableFighters()
getAvailableFighters
in interface AutofitPlugin.AutofitPluginDelegate
public java.util.List<AutofitPlugin.AvailableWeapon> getAvailableWeapons()
getAvailableWeapons
in interface AutofitPlugin.AutofitPluginDelegate
public java.util.List<java.lang.String> getAvailableHullmods()
getAvailableHullmods
in interface AutofitPlugin.AutofitPluginDelegate
public ShipAPI getShip()
getShip
in interface AutofitPlugin.AutofitPluginDelegate
public void syncUIWithVariant(ShipVariantAPI variant)
syncUIWithVariant
in interface AutofitPlugin.AutofitPluginDelegate
public boolean isPriority(WeaponSpecAPI weapon)
isPriority
in interface AutofitPlugin.AutofitPluginDelegate
public boolean isPriority(FighterWingSpecAPI wing)
isPriority
in interface AutofitPlugin.AutofitPluginDelegate
public FleetMemberAPI getMember()
public static void main(java.lang.String[] args)
public FactionAPI getFaction()
getFaction
in interface AutofitPlugin.AutofitPluginDelegate
public java.lang.Long getSeed()
public void setSeed(java.lang.Long seed)
public java.lang.Boolean getPersistent()
public void setPersistent(java.lang.Boolean persistent)
public float getQuality()
getQuality
in interface FleetInflater
public int getAverageNumSMods()
getAverageNumSMods
in interface FleetInflater
public void setQuality(float quality)
setQuality
in interface FleetInflater
public java.lang.Long getTimestamp()
public void setTimestamp(java.lang.Long timestamp)
public java.lang.Object getParams()
getParams
in interface FleetInflater
public boolean canAddRemoveHullmodInPlayerCampaignRefit(java.lang.String modId)
canAddRemoveHullmodInPlayerCampaignRefit
in interface AutofitPlugin.AutofitPluginDelegate
public boolean isPlayerCampaignRefit()
isPlayerCampaignRefit
in interface AutofitPlugin.AutofitPluginDelegate
public boolean isAllowSlightRandomization()
isAllowSlightRandomization
in interface AutofitPlugin.AutofitPluginDelegate
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.