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 aFlagGameStaterecord 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.final inthashCode()Returns a hash code value for this object.state()Returns the value of thestaterecord component.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
-
FlagGameState
public FlagGameState(long flagId, long flagBaseId, Vec3 colliderSize, String team, Transform transform, FlagState state) Creates an instance of aFlagGameStaterecord class.- Parameters:
flagId- the value for theflagIdrecord componentflagBaseId- the value for theflagBaseIdrecord componentcolliderSize- the value for thecolliderSizerecord componentteam- the value for theteamrecord componenttransform- the value for thetransformrecord componentstate- the value for thestaterecord 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
-
colliderSize
Returns the value of thecolliderSizerecord component.- Returns:
- the value of the
colliderSizerecord 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
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-