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 aFirstContactrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebotAssignedSpawnPointrecord component.botName()Returns the value of thebotNamerecord component.Returns the value of theclientTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelobbyNamerecord component.mapName()Returns the value of themapNamerecord component.tankType()Returns the value of thetankTyperecord component.teamName()Returns the value of theteamNamerecord component.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, 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 aFirstContactrecord class.- Parameters:
botName- the value for thebotNamerecord componentlobbyName- the value for thelobbyNamerecord componentmapName- the value for themapNamerecord componentteamName- the value for theteamNamerecord componentclientType- the value for theclientTyperecord componentbotAssignedSpawnPoint- the value for thebotAssignedSpawnPointrecord componenttankType- the value for thetankTyperecord 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 theclientTyperecord component.- Returns:
- the value of the
clientTyperecord component
-
botAssignedSpawnPoint
Returns the value of thebotAssignedSpawnPointrecord component.- Returns:
- the value of the
botAssignedSpawnPointrecord component
-
tankType
-