# Class OpponentShipController

java.lang.Object
it.polimi.ingsw.is25am31.view.gui.OpponentShipController

public class OpponentShipController extends Object
Controller for displaying an opponent's ship in a separate window. Shows the ship components with their current state including crew members, cargo contents, battery levels, and aliens. Provides a read-only view of another player's ship configuration.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OpponentShipController()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `showShip(Ship ship, int level)`
  Displays the opponent's ship with the specified level.

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

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

- ## Constructor Details

  - ### OpponentShipController

    public OpponentShipController()

- ## Method Details

  - ### showShip

    public void showShip(Ship ship, int level)
    Displays the opponent's ship with the specified level. Shows the appropriate ship level background and updates the ship view.
    Parameters:
      `ship` - the opponent's ship to display
      `level` - the ship level (1 or 2)