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 aFlagBaseState
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolliderSize
record component.final boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theflagBaseId
record component.long
flagId()
Returns the value of theflagId
record component.boolean
Returns the value of theflagInBase
record component.final int
hashCode()
Returns a hash code value for this object.team()
Returns the value of theteam
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetransform
record component.
-
Constructor Details
-
FlagBaseState
public FlagBaseState(long flagId, long flagBaseId, String team, Transform transform, Vec3 colliderSize, boolean flagInBase) Creates an instance of aFlagBaseState
record class.- Parameters:
flagId
- the value for theflagId
record componentflagBaseId
- the value for theflagBaseId
record componentteam
- the value for theteam
record componenttransform
- the value for thetransform
record componentcolliderSize
- the value for thecolliderSize
record componentflagInBase
- the value for theflagInBase
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with thecompare
method from their corresponding wrapper classes. -
flagId
public long flagId()Returns the value of theflagId
record component.- Returns:
- the value of the
flagId
record component
-
flagBaseId
public long flagBaseId()Returns the value of theflagBaseId
record component.- Returns:
- the value of the
flagBaseId
record component
-
team
Returns the value of theteam
record component.- Returns:
- the value of the
team
record component
-
transform
Returns the value of thetransform
record component.- Returns:
- the value of the
transform
record component
-
colliderSize
Returns the value of thecolliderSize
record component.- Returns:
- the value of the
colliderSize
record component
-
flagInBase
public boolean flagInBase()Returns the value of theflagInBase
record component.- Returns:
- the value of the
flagInBase
record component
-