Record Class FirstContact
java.lang.Object
java.lang.Record
dev.zwazel.internal.message.data.FirstContact
- Record Components:
botName
- The name of the bot.lobbyName
- The name of the lobby the bot is joining.mapName
- The name of the map the bot is joining.teamName
- The name of the team the bot is joining.clientType
- The type of client the bot is (player or spectator).botAssignedSpawnPoint
- The spawn point the bot is assigned.tankType
- The type of tank the bot is using. can be null if the bot is a spectator.
- All Implemented Interfaces:
MessageData
public record FirstContact(String botName, String lobbyName, String mapName, String teamName, FirstContact.ClientType clientType, Long botAssignedSpawnPoint, TankType tankType)
extends Record
implements MessageData
Message data for when a bot makes first contact with the server.
This is the first message sent by a bot to the server.
Used to register the bot with the server, and do initial setup.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFirstContact
(String botName, String lobbyName, String mapName, String teamName, FirstContact.ClientType clientType, Long botAssignedSpawnPoint, TankType tankType) Creates an instance of aFirstContact
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebotAssignedSpawnPoint
record component.botName()
Returns the value of thebotName
record component.Returns the value of theclientType
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelobbyName
record component.mapName()
Returns the value of themapName
record component.tankType()
Returns the value of thetankType
record component.teamName()
Returns the value of theteamName
record component.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, applyOnReceive, isUnique
-
Constructor Details
-
FirstContact
public FirstContact(String botName, String lobbyName, String mapName, String teamName, FirstContact.ClientType clientType, Long botAssignedSpawnPoint, TankType tankType) Creates an instance of aFirstContact
record class.- Parameters:
botName
- the value for thebotName
record componentlobbyName
- the value for thelobbyName
record componentmapName
- the value for themapName
record componentteamName
- the value for theteamName
record componentclientType
- the value for theclientType
record componentbotAssignedSpawnPoint
- the value for thebotAssignedSpawnPoint
record componenttankType
- the value for thetankType
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
botName
-
lobbyName
-
mapName
-
teamName
-
clientType
Returns the value of theclientType
record component.- Returns:
- the value of the
clientType
record component
-
botAssignedSpawnPoint
Returns the value of thebotAssignedSpawnPoint
record component.- Returns:
- the value of the
botAssignedSpawnPoint
record component
-
tankType
-