Record Class FlagReturnedInBase
java.lang.Object
java.lang.Record
dev.zwazel.internal.message.data.flag.FlagReturnedInBase
- Record Components:
flagId
- The ID of the flag that got returned in the base.
- All Implemented Interfaces:
MessageData
Represents the message data for when a flag is returned in the base.
Received when a flag is returned in the base.
This could happen when a player of the same team as the flag's team collects the dropped flag, thus returning it to the base.
Or when the enemy team captures the flag and returns it to their base, scoring a point.
-
Constructor Summary
ConstructorsConstructorDescriptionFlagReturnedInBase
(long flagId) Creates an instance of aFlagReturnedInBase
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
flagId()
Returns the value of theflagId
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.zwazel.internal.message.MessageData
applyBeforeSend, applyOnAddingToQueue, applyOnReceive, isUnique
-
Constructor Details
-
FlagReturnedInBase
public FlagReturnedInBase(long flagId) Creates an instance of aFlagReturnedInBase
record class.- Parameters:
flagId
- the value for theflagId
record 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 thecompare
method from their corresponding wrapper classes. -
flagId
-