Record Class GrowthSettings
java.lang.Object
java.lang.Record
idlab.colonyops.model.strategy.GrowthSettings
- Record Components:
populationGrowth- determines squad size and respawn speedeconomicGrowth- determines depth of economic tech tree researchmilitaryGrowth- determines depth of military tech tree research
public record GrowthSettings(GrowthLevel populationGrowth, GrowthLevel economicGrowth, GrowthLevel militaryGrowth)
extends Record
The desired growth aggressiveness for each of a colony's three core stats.
-
Constructor Summary
ConstructorsConstructorDescriptionGrowthSettings(GrowthLevel populationGrowth, GrowthLevel economicGrowth, GrowthLevel militaryGrowth) Creates an instance of aGrowthSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theeconomicGrowthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themilitaryGrowthrecord component.Returns the value of thepopulationGrowthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GrowthSettings
public GrowthSettings(GrowthLevel populationGrowth, GrowthLevel economicGrowth, GrowthLevel militaryGrowth) Creates an instance of aGrowthSettingsrecord class.- Parameters:
populationGrowth- the value for thepopulationGrowthrecord componenteconomicGrowth- the value for theeconomicGrowthrecord componentmilitaryGrowth- the value for themilitaryGrowthrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
populationGrowth
Returns the value of thepopulationGrowthrecord component.- Returns:
- the value of the
populationGrowthrecord component
-
economicGrowth
Returns the value of theeconomicGrowthrecord component.- Returns:
- the value of the
economicGrowthrecord component
-
militaryGrowth
Returns the value of themilitaryGrowthrecord component.- Returns:
- the value of the
militaryGrowthrecord component
-