Record Class Strategy
java.lang.Object
java.lang.Record
idlab.colonyops.model.strategy.Strategy
- Record Components:
growthSettings- how aggressively each colony stat should grow nextresearchTargets- the chosen research branch in each tech tree
public record Strategy(GrowthSettings growthSettings, ResearchTargets researchTargets)
extends Record
A colony's strategic-layer choices, returned by the player's logic service from
GET /strategy between missions.-
Constructor Summary
ConstructorsConstructorDescriptionStrategy(GrowthSettings growthSettings, ResearchTargets researchTargets) Creates an instance of aStrategyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegrowthSettingsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theresearchTargetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Strategy
Creates an instance of aStrategyrecord class.- Parameters:
growthSettings- the value for thegrowthSettingsrecord componentresearchTargets- the value for theresearchTargetsrecord 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). -
growthSettings
Returns the value of thegrowthSettingsrecord component.- Returns:
- the value of the
growthSettingsrecord component
-
researchTargets
Returns the value of theresearchTargetsrecord component.- Returns:
- the value of the
researchTargetsrecord component
-