protected void PerformManeuverOfShip(GenericShip ship) { ship.IsManeuverPerformed = true; GameCommand command = ShipMovementScript.GenerateActivateAndMoveCommand(Selection.ThisShip.ShipId); GameMode.CurrentGameMode.ExecuteCommand(command); }
public override void DoSelectThisShip(GenericShip ship, int mouseKeyIsPressed) { if (!ship.IsManeuverPerformed) { GameCommand command = ShipMovementScript.GenerateActivateAndMoveCommand(Selection.ThisShip.ShipId); GameMode.CurrentGameMode.ExecuteCommand(command); } else { Messages.ShowErrorToHuman("This ship has already executed his maneuver"); }; }