Class UpgradeShipTradeStep

  • All Implemented Interfaces:
    ch.sahits.game.openpatrician.model.product.ITradeStep

    public class UpgradeShipTradeStep
    extends java.lang.Object
    implements ch.sahits.game.openpatrician.model.product.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean execute()
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UpgradeShipTradeStep

        public UpgradeShipTradeStep()
    • Method Detail

      • execute

        public boolean execute()
        Specified by:
        execute in interface ch.sahits.game.openpatrician.model.product.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