java.lang.Object
it.polimi.ingsw.communication.tcp_client.TcpClient
it.polimi.ingsw.communication.sugar_framework.SugarClient

public class SugarClient extends TcpClient
  • Field Details

  • Constructor Details

  • Method Details

    • onConnect

      protected void onConnect()
      Description copied from class: TcpClient
      Subclasses override this method to make it behave as they wish.
      Specified by:
      onConnect in class TcpClient
    • onDisconnect

      protected void onDisconnect()
      Description copied from class: TcpClient
      Subclasses override this method to make it behave as they wish.
      Specified by:
      onDisconnect in class TcpClient
    • onMessage

      protected final void onMessage(String input)
      Description copied from class: TcpClient
      Subclasses override this method to make it behave as they wish.
      Specified by:
      onMessage in class TcpClient
      Parameters:
      input - a string received from the socket
    • send

      public void send(SugarMessage message) throws DisconnectionException
      Throws:
      DisconnectionException
    • setUpi

      public void setUpi(UUID upi)