Class UpgradeShipTradeStep

  • All Implemented Interfaces:
    ITradeStep

    public class UpgradeShipTradeStep
    extends java.lang.Object
    implements ITradeStep
    Check if the ship needs to be upgraded. If the vessel is a convoy there will not be an upgrade.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2017 Created on Nov 04, 2017
    • Constructor Detail

      • UpgradeShipTradeStep

        public UpgradeShipTradeStep()
    • Method Detail

      • execute

        public boolean execute()
        Execute the trade step.
        Specified by:
        execute in interface ITradeStep
        Returns:
        false if an upgrade is executed. The wake up event is RefitFinishedEvent.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object