# Class RoundResultCommand

java.lang.Object
it.polimi.ingsw.is25am31.network.socket.serverClientMessages.RoundResultCommand

All Implemented Interfaces:
  `ServerClientCommand`, `Serializable`

public class RoundResultCommand extends Object implements ServerClientCommand, Serializable
Represents a command sent from the server to the client to notify the result of a round during specific cards' effect application.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RoundResultCommand(boolean roundWon)`
  Constructs a new `RoundResultCommand`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `execute(SocketClient client)`
  Executes the command on the `SocketClient`, instructing it to display the round result.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### RoundResultCommand

    public RoundResultCommand(boolean roundWon)
    Constructs a new `RoundResultCommand`.
    Parameters:
      `roundWon` - A boolean indicating whether the round was won (true) or lost (false).

- ## Method Details

  - ### execute

    public void execute(SocketClient client) throws Exception
    Executes the command on the `SocketClient`, instructing it to display the round result.
    Specified by:
      `execute` in interface `ServerClientCommand`
    Parameters:
      `client` - The `SocketClient` instance to execute the command on.
    Throws:
      `Exception` - if an error occurs during round result notification.