Record Class FlagGameState
java.lang.Object
java.lang.Record
dev.zwazel.internal.game.state.FlagGameState
-
Constructor Summary
ConstructorsConstructorDescriptionFlagGameState
(long flagId, long flagBaseId, Vec3 colliderSize, String team, Transform transform, FlagState state) Creates an instance of aFlagGameState
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.final int
hashCode()
Returns a hash code value for this object.state()
Returns the value of thestate
record component.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
-
FlagGameState
public FlagGameState(long flagId, long flagBaseId, Vec3 colliderSize, String team, Transform transform, FlagState state) Creates an instance of aFlagGameState
record class.- Parameters:
flagId
- the value for theflagId
record componentflagBaseId
- the value for theflagBaseId
record componentcolliderSize
- the value for thecolliderSize
record componentteam
- the value for theteam
record componenttransform
- the value for thetransform
record componentstate
- the value for thestate
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
-
colliderSize
Returns the value of thecolliderSize
record component.- Returns:
- the value of the
colliderSize
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
-
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-