Class PopulationComposition
java.lang.Object
com.fs.starfarer.api.impl.campaign.population.PopulationComposition
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
float
getComp()
float
float
float
void
void
void
normalizeToWeight
(float w) void
void
setWeight
(float weight) toString()
void
-
Field Details
-
SET_WEIGHT_ID
- See Also:
-
-
Constructor Details
-
PopulationComposition
public PopulationComposition()
-
-
Method Details
-
getComp
-
get
-
set
-
add
-
toString
-
getWeightValue
public float getWeightValue() -
getPositiveWeight
public float getPositiveWeight() -
getNegativeWeight
public float getNegativeWeight() -
setWeight
public void setWeight(float weight) -
updateWeight
public void updateWeight() -
getWeight
-
normalize
public void normalize() -
normalizeToPositive
public void normalizeToPositive() -
normalizeToWeight
public void normalizeToWeight(float w)
-