Class RoutingDialog.RetValue

  • All Implemented Interfaces:
    RoutingDialogData
    Enclosing class:
    RoutingDialog

    public static class RoutingDialog.RetValue
    extends java.lang.Object
    implements RoutingDialogData
    Represents the result of the dialog. This is basically a tuple consisting of
    dest - the destination coordinate
    makeRoute - whether to construct a route rather than a simple path
    useRange - whether to consider the ship range
    useVorlage - whether to create Vorlage orders
    replaceOrders - whether to replace the unit's orders
    Version:
    $Revision: 389 $
    Author:
    $Author: $
    • Field Detail

      • dest

        public CoordinateID dest
        The coordinates of the destination
      • useRange

        public boolean useRange
        whether to consider the ship's range
      • useVorlage

        public boolean useVorlage
        whether to create Vorlage orders
      • replaceOrders

        public boolean replaceOrders
        whether to replace the unit's orders
      • mode

        public int mode
        The route mode, a combination of RoutePlanner.MODE_... constants
    • Constructor Detail

      • RetValue

        public RetValue​(CoordinateID d,
                        int mode,
                        boolean range,
                        boolean vorlage,
                        boolean replace)
        Creates a new RetValue object.
        Parameters:
        d - The destination
        mode - The mode, a combination of RoutePlanner.MODE_... constants
        range - whether to consider the ship's range
        vorlage - whether to create Vorlage orders
        replace - whether to replace the unit's orders