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 aFlagReturnedInBaserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longflagId()Returns the value of theflagIdrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.zwazel.internal.message.MessageData
applyBeforeSend, applyOnAddingToQueue, applyOnReceive, isUnique
-
Constructor Details
-
FlagReturnedInBase
public FlagReturnedInBase(long flagId) Creates an instance of aFlagReturnedInBaserecord class.- Parameters:
flagId- the value for theflagIdrecord 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. -
flagId
-