Record Class ReduceInterceptionChance
java.lang.Object
java.lang.Record
idlab.colonyops.model.techtree.ReduceInterceptionChance
- Record Components:
reduction- the amount by which the interception chance is reduced
- All Implemented Interfaces:
TechEffect
Reduces the chance that rival colonies intercept this colony's orbital communications (e.g.
large deposit discovery intel).
-
Constructor Summary
ConstructorsConstructorDescriptionReduceInterceptionChance(int reduction) Creates an instance of aReduceInterceptionChancerecord 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.intReturns the value of thereductionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReduceInterceptionChance
public ReduceInterceptionChance(int reduction) Creates an instance of aReduceInterceptionChancerecord class.- Parameters:
reduction- the value for thereductionrecord 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. -
reduction
-