Record Class StartGameConfig
java.lang.Object
java.lang.Record
dev.zwazel.internal.message.data.StartGameConfig
- Record Components:
fillEmptySlotsWithDummies- Whether to fill empty slots with dummies or not.
- All Implemented Interfaces:
MessageData
public record StartGameConfig(boolean fillEmptySlotsWithDummies)
extends Record
implements MessageData
Start game configuration.
Sent to the server to start the game.
-
Constructor Summary
ConstructorsConstructorDescriptionStartGameConfig(boolean fillEmptySlotsWithDummies) Creates an instance of aStartGameConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyOnReceive(InternalGameWorld world) Applies to the world when receivedfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefillEmptySlotsWithDummiesrecord 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, isUnique
-
Constructor Details
-
StartGameConfig
public StartGameConfig(boolean fillEmptySlotsWithDummies) Creates an instance of aStartGameConfigrecord class.- Parameters:
fillEmptySlotsWithDummies- the value for thefillEmptySlotsWithDummiesrecord component
-
-
Method Details
-
applyOnReceive
Description copied from interface:MessageDataApplies to the world when received- Specified by:
applyOnReceivein interfaceMessageData- Parameters:
world- the world- Returns:
- if true, we add it to the Input Queue, so Bots can read them. If false, we don't.
-
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. -
fillEmptySlotsWithDummies
public boolean fillEmptySlotsWithDummies()Returns the value of thefillEmptySlotsWithDummiesrecord component.- Returns:
- the value of the
fillEmptySlotsWithDummiesrecord component
-