Record Class UnlockWeaponType
java.lang.Object
java.lang.Record
idlab.colonyops.model.techtree.UnlockWeaponType
- Record Components:
weaponType- the weapon type that becomes available
- All Implemented Interfaces:
TechEffect
Unlocks a weapon type so squad members may be equipped with it.
-
Constructor Summary
ConstructorsConstructorDescriptionUnlockWeaponType(WeaponType weaponType) Creates an instance of aUnlockWeaponTyperecord 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.final StringtoString()Returns a string representation of this record class.Returns the value of theweaponTyperecord component.
-
Constructor Details
-
UnlockWeaponType
Creates an instance of aUnlockWeaponTyperecord class.- Parameters:
weaponType- the value for theweaponTyperecord 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). -
weaponType
Returns the value of theweaponTyperecord component.- Returns:
- the value of the
weaponTyperecord component
-