Class PopulationComposition

java.lang.Object
com.fs.starfarer.api.impl.campaign.population.PopulationComposition

public class PopulationComposition extends Object
  • Field Details

  • Constructor Details

    • PopulationComposition

      public PopulationComposition()
  • Method Details

    • getComp

      public LinkedHashMap<String,Float> getComp()
    • get

      public float get(String id)
    • set

      public void set(String id, float value)
    • add

      public void add(String id, float value)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getWeightValue

      public float getWeightValue()
    • getPositiveWeight

      public float getPositiveWeight()
    • getNegativeWeight

      public float getNegativeWeight()
    • setWeight

      public void setWeight(float weight)
    • updateWeight

      public void updateWeight()
    • getWeight

      public MutableStat getWeight()
    • normalize

      public void normalize()
    • normalizeToPositive

      public void normalizeToPositive()
    • normalizeToWeight

      public void normalizeToWeight(float w)