# Class StartAssemblingPhaseCommand

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

All Implemented Interfaces:
  `ServerClientCommand`, `Serializable`

public class StartAssemblingPhaseCommand extends Object implements ServerClientCommand, Serializable
Represents a command sent from the server to the client to start the assembling phase of the game.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StartAssemblingPhaseCommand(List<Player> players, int level)`
  Constructs a new `StartAssemblingPhaseCommand`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `execute(SocketClient client)`
  Executes the command on the `SocketClient`, instructing it to start the assembling phase with the given players and game level.

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

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

- ## Constructor Details

  - ### StartAssemblingPhaseCommand

    public StartAssemblingPhaseCommand(List<Player> players, int level)
    Constructs a new `StartAssemblingPhaseCommand`.
    Parameters:
      `players` - A list of `Player`s participating in the game.
      `level` - The current game level.

- ## Method Details

  - ### execute

    public void execute(SocketClient client) throws Exception
    Executes the command on the `SocketClient`, instructing it to start the assembling phase with the given players and game level.
    Specified by:
      `execute` in interface `ServerClientCommand`
    Parameters:
      `client` - The `SocketClient` instance to execute the command on.
    Throws:
      `Exception` - if an error occurs during the start of the assembling phase.