# Interface ServerClientCommand

All Superinterfaces:
  `Serializable`

All Known Implementing Classes:
  `ConnectionResponseCommand`, `CrewPlacingPhaseCommand`, `DiceResultCommand`, `EffectResolutionCommand`, `ExceptionCommand`, `FinishFinalHourglassCommand`, `FlightPhaseCommand`, `LockClientCommand`, `NewLeaderCommand`, `NotifyDefeatCommand`, `PingCommand`, `PlayerJoinedCommand`, `RoundResultCommand`, `SetGameLevelCommand`, `SetNicknameCommand`, `SetUuidCommand`, `ShowCardCommand`, `ShowComponentCommand`, `ShowFaceUpComponentListCommand`, `ShowFinalRankingCommand`, `ShowGameListCommand`, `ShowSecondsLeftCommand`, `ShowSecondsLeftForGuiCommand`, `ShowShipCommand`, `ShowSubDeckCommand`, `ShowUpdateCommand`, `StartAssemblingPhaseCommand`, `StartGameCommand`, `TurnChangeCommand`, `UpdatePositionsCommand`

public interface ServerClientCommand extends Serializable
Represents a command that can be sent from the server to a client. All server-client commands must implement this interface to ensure they can be executed by a `SocketClient`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `execute(SocketClient client)`
  Executes the command on the provided `SocketClient` instance.

- ## Method Details

  - ### execute

    void execute(SocketClient client) throws Exception
    Executes the command on the provided `SocketClient` instance. This method defines the action to be performed on the client side when this command is received.
    Parameters:
      `client` - The `SocketClient` instance to execute the command on.
    Throws:
      `Exception` - if an error occurs during command execution.