Record Class ConsumableDeployCallInOutcome
java.lang.Object
java.lang.Record
idlab.colonyops.model.events.ConsumableDeployCallInOutcome
- Record Components:
command- the call-in command that was executedconsumable- the consumable applied to the squad member (type and remaining turns)healAmount- HP actually restored byOrbitalCallInCommand.DEPLOY_MEDIC_KIT;nullfor other types
- All Implemented Interfaces:
ActionOutcome
public record ConsumableDeployCallInOutcome(OrbitalCallInCommand command, Consumable consumable, Integer healAmount)
extends Record
implements ActionOutcome
Outcome for consumable deploy call-ins:
OrbitalCallInCommand.DEPLOY_JETPACK, OrbitalCallInCommand.DEPLOY_MAGMA_BORE,
OrbitalCallInCommand.DEPLOY_MEDIC_KIT and OrbitalCallInCommand.DEPLOY_AMMO_PACK.-
Constructor Summary
ConstructorsConstructorDescriptionConsumableDeployCallInOutcome(OrbitalCallInCommand command, Consumable consumable, Integer healAmount) Creates an instance of aConsumableDeployCallInOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns the value of thecommandrecord component.Returns the value of theconsumablerecord 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 thehealAmountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConsumableDeployCallInOutcome
public ConsumableDeployCallInOutcome(OrbitalCallInCommand command, Consumable consumable, Integer healAmount) Creates an instance of aConsumableDeployCallInOutcomerecord class.- Parameters:
command- the value for thecommandrecord componentconsumable- the value for theconsumablerecord componenthealAmount- the value for thehealAmountrecord 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). -
command
-
consumable
Returns the value of theconsumablerecord component.- Returns:
- the value of the
consumablerecord component
-
healAmount
Returns the value of thehealAmountrecord component.- Returns:
- the value of the
healAmountrecord component
-