Package org.swtpra1.messages
Class StartMessage
- java.lang.Object
-
- org.swtpra1.messages.StartMessage
-
public class StartMessage extends java.lang.Object
This class represents the incoming JSON start message from the game server.
-
-
Field Summary
Fields Modifier and Type Field Description Board
board
A representation of the board as described above.int
gameId
ID of the game used to keep track of different games played simultaneously.long
maxTurnTime
Maximum amount of time the server is waiting for a response for a turn request (in ms).java.lang.String
messageType
Represents the type of the message and is always start for a start message.int
playerId
The ID of the player within the game.
-
Constructor Summary
Constructors Constructor Description StartMessage()
-
-
-
Field Detail
-
messageType
public java.lang.String messageType
Represents the type of the message and is always start for a start message.
-
gameId
public int gameId
ID of the game used to keep track of different games played simultaneously.
-
playerId
public int playerId
The ID of the player within the game. Players will start within the order of their IDs.
-
maxTurnTime
public long maxTurnTime
Maximum amount of time the server is waiting for a response for a turn request (in ms).
-
board
public Board board
A representation of the board as described above.
-
-