Class UpgradeShipTradeStep
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.tradesteps.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.ITradeStepCheck 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 Summary
Constructors Constructor Description UpgradeShipTradeStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute()java.lang.StringtoString()
-
-
-
Method Detail
-
execute
public boolean execute()
- Specified by:
executein interfacech.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:
toStringin classjava.lang.Object
-
-