/**
  Space by A.H. Schulak (Shoe) October 1996
  Space by A.H. Schulak (Shoe) March 1998
**/

package Space;

public class ShipButton extends GP.Components.Buttons.Toggle {
  private Ship _ship;
  private ShipProxy _shipProxy;
  private GP.Sound _click;

  public ShipButton(GP.Container container, Ship ship, ShipProxy shipProxy) {
    super(container, ship.GetShape().Copy());
    _ship = ship;
    _ship.Hide();
    _shipProxy = shipProxy;
    _click = new GP.Sound(Simulation.PATH + "Space/Sounds/click.au");
  }

  public void Activate() {
    _click.Play();
    _shipProxy.SetShip(_ship.Copy());
  }

  public void DeActivate() {}
  
}
