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 aStartGameConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
applyOnReceive
(InternalGameWorld world) Applies to the world when receivedfinal boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of thefillEmptySlotsWithDummies
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.zwazel.internal.message.MessageData
applyBeforeSend, applyOnAddingToQueue, isUnique
-
Constructor Details
-
StartGameConfig
public StartGameConfig(boolean fillEmptySlotsWithDummies) Creates an instance of aStartGameConfig
record class.- Parameters:
fillEmptySlotsWithDummies
- the value for thefillEmptySlotsWithDummies
record component
-
-
Method Details
-
applyOnReceive
Description copied from interface:MessageData
Applies to the world when received- Specified by:
applyOnReceive
in 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 thecompare
method from their corresponding wrapper classes. -
fillEmptySlotsWithDummies
public boolean fillEmptySlotsWithDummies()Returns the value of thefillEmptySlotsWithDummies
record component.- Returns:
- the value of the
fillEmptySlotsWithDummies
record component
-