Record Class SquadMemberHealthMultiplier
java.lang.Object
java.lang.Record
idlab.colonyops.model.techtree.SquadMemberHealthMultiplier
- Record Components:
multiplier- the factor applied to maximum HP
- All Implemented Interfaces:
TechEffect
Multiplies a squad member's maximum health points.
-
Constructor Summary
ConstructorsConstructorDescriptionSquadMemberHealthMultiplier(double multiplier) Creates an instance of aSquadMemberHealthMultiplierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themultiplierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SquadMemberHealthMultiplier
public SquadMemberHealthMultiplier(double multiplier) Creates an instance of aSquadMemberHealthMultiplierrecord class.- Parameters:
multiplier- the value for themultiplierrecord 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 with thecomparemethod from their corresponding wrapper classes. -
multiplier
public double multiplier()Returns the value of themultiplierrecord component.- Returns:
- the value of the
multiplierrecord component
-