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

package Space;

public class MouseController extends GP.Containers.Row {
  private Mouse _left;
  private Mouse _right;
  private Mouse _activate;
  private Mouse _thrust;
  private Mouse _dethrust;
  
  public MouseController(GP.Container container, ShipInterface ship) {

    super(container);
    _left = new Mouse(this,new GP.Graphics.Image(this,"tleft.gif"),
		      new Space.Manipulators.TurnLeft(ship));
    _right = new Mouse(this,new GP.Graphics.Image(this,"tright.gif"),
		       new Space.Manipulators.TurnRight(ship));
    _activate = new Mouse(this,new GP.Graphics.Image(this,"activate.gif"),
			  new Space.Manipulators.Activate(ship));
    _thrust = new Mouse(this,new GP.Graphics.Image(this,"thrust.gif"),
			new Space.Manipulators.Thrust(ship));
    _dethrust = new Mouse(this,new GP.Graphics.Image(this,"dethrust.gif"),
			  new Space.Manipulators.Dethrust(ship));
  }

  public void TurnOff() {
    _left.TurnOffInteractor();
    _right.TurnOffInteractor();
    _activate.TurnOffInteractor();
    _thrust.TurnOffInteractor();
    _dethrust.TurnOffInteractor();
  }

  public void TurnOn() {
    _left.TurnOnInteractor();
    _right.TurnOnInteractor();
    _activate.TurnOnInteractor();
    _thrust.TurnOnInteractor();
    _dethrust.TurnOnInteractor();
  }

}

