Record Class FlagBaseState
java.lang.Object
java.lang.Record
dev.zwazel.internal.game.state.FlagBaseState
-
Constructor Summary
ConstructorsConstructorDescriptionFlagBaseState(long flagId, long flagBaseId, String team, Transform transform, Vec3 colliderSize, boolean flagInBase) Creates an instance of aFlagBaseStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolliderSizerecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theflagBaseIdrecord component.longflagId()Returns the value of theflagIdrecord component.booleanReturns the value of theflagInBaserecord component.final inthashCode()Returns a hash code value for this object.team()Returns the value of theteamrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformrecord component.
-
Constructor Details
-
FlagBaseState
public FlagBaseState(long flagId, long flagBaseId, String team, Transform transform, Vec3 colliderSize, boolean flagInBase) Creates an instance of aFlagBaseStaterecord class.- Parameters:
flagId- the value for theflagIdrecord componentflagBaseId- the value for theflagBaseIdrecord componentteam- the value for theteamrecord componenttransform- the value for thetransformrecord componentcolliderSize- the value for thecolliderSizerecord componentflagInBase- the value for theflagInBaserecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
flagId
public long flagId()Returns the value of theflagIdrecord component.- Returns:
- the value of the
flagIdrecord component
-
flagBaseId
public long flagBaseId()Returns the value of theflagBaseIdrecord component.- Returns:
- the value of the
flagBaseIdrecord component
-
team
Returns the value of theteamrecord component.- Returns:
- the value of the
teamrecord component
-
transform
Returns the value of thetransformrecord component.- Returns:
- the value of the
transformrecord component
-
colliderSize
Returns the value of thecolliderSizerecord component.- Returns:
- the value of the
colliderSizerecord component
-
flagInBase
public boolean flagInBase()Returns the value of theflagInBaserecord component.- Returns:
- the value of the
flagInBaserecord component
-