Class EndMessage


  • public class EndMessage
    extends java.lang.Object
    The end message informs the player about the end of a game.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int gameId
      ID of the game used to keep track of different games played simultaneously.
      java.lang.String messageType
      Represents the type of the message and is always end for an end message.
      int playerId
      The ID of the player within the game (0 or 1).
      int turnId
      ID of the turn (starting with 0).
      int winningPlayer
      ID of the player that won the game.
    • Constructor Summary

      Constructors 
      Constructor Description
      EndMessage()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • messageType

        public java.lang.String messageType
        Represents the type of the message and is always end for an end message.
      • gameId

        public int gameId
        ID of the game used to keep track of different games played simultaneously.
      • turnId

        public int turnId
        ID of the turn (starting with 0).
      • playerId

        public int playerId
        The ID of the player within the game (0 or 1). Players will start within the order of their IDs.
      • winningPlayer

        public int winningPlayer
        ID of the player that won the game. This element is missing if a running game is aborted.
    • Constructor Detail

      • EndMessage

        public EndMessage()