Record Class SquadMemberSpawnedOutcome
java.lang.Object
java.lang.Record
idlab.colonyops.model.events.SquadMemberSpawnedOutcome
- Record Components:
spawnedMembers- all squad members that were spawned in this batchlandingCraft- optional landing craft, in case this is a full squad (re)spawn;nullotherwise
- All Implemented Interfaces:
ActionOutcome
public record SquadMemberSpawnedOutcome(List<SquadMember> spawnedMembers, LandingCraft landingCraft)
extends Record
implements ActionOutcome
Outcome reported (not caused by a squad member's action) when one or more
SquadMembers
are spawned into the world. Covers wipeout respawns, reinforcement call-ins and delayed
initial spawns.
The MissionEvent.subjectEntityId() and MissionEvent.subjectLocation() refer to
the first spawned member for convenience; the full list is available in
spawnedMembers().-
Constructor Summary
ConstructorsConstructorDescriptionSquadMemberSpawnedOutcome(List<SquadMember> spawnedMembers, LandingCraft landingCraft) Creates an instance of aSquadMemberSpawnedOutcomerecord 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.Returns the value of thelandingCraftrecord component.Returns the value of thespawnedMembersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SquadMemberSpawnedOutcome
Creates an instance of aSquadMemberSpawnedOutcomerecord class.- Parameters:
spawnedMembers- the value for thespawnedMembersrecord componentlandingCraft- the value for thelandingCraftrecord 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). -
spawnedMembers
Returns the value of thespawnedMembersrecord component.- Returns:
- the value of the
spawnedMembersrecord component
-
landingCraft
Returns the value of thelandingCraftrecord component.- Returns:
- the value of the
landingCraftrecord component
-