public ControlPopup(Ship ship, int x, int y, int width, int height, ShipCommands startCommands) { ShipId = ship.Uid; _leftEngineSlider = new HolySlider(x + LabelMargin - 5, y + 10, width - 6 - LabelMargin, 35, startCommands.LeftEngineToggles, World.MaxEnginesPerTurn / World.TurnLength); _rightEngineSlider = new HolySlider(x + LabelMargin - 5, y + 63, width - 6 - LabelMargin, 35, startCommands.RightEngineToggles, World.MaxEnginesPerTurn / World.TurnLength); _weaponsSlider = new HolySlider(x + LabelMargin - 5, y + 116, width - 6 - LabelMargin, 35, startCommands.WeaponShots, 2); _x = x; _y = y; _width = width; _height = height; }
public PlayerShipController(ShipCommands commands) { _commands = commands; }