Class AmountBasedAggregatedDumpTradeStep
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.tradesteps.AbstractAggregateDumpTradeStep
-
- ch.sahits.game.openpatrician.engine.player.tradesteps.AmountBasedAggregatedDumpTradeStep
-
- All Implemented Interfaces:
ch.sahits.game.openpatrician.model.product.ITradeStep
public class AmountBasedAggregatedDumpTradeStep extends AbstractAggregateDumpTradeStep
This dump sell step is conditional based on the amount of loaded wares on the ship. It is best used with a preceding sell step and then use this dump step to check if there is too much wares loaded and to dump them.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Jul 24, 2016
-
-
Constructor Summary
Constructors Constructor Description AmountBasedAggregatedDumpTradeStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute()-
Methods inherited from class ch.sahits.game.openpatrician.engine.player.tradesteps.AbstractAggregateDumpTradeStep
addSellStep, toString
-
-
-
-
Method Detail
-
execute
public boolean execute()
- Specified by:
executein interfacech.sahits.game.openpatrician.model.product.ITradeStep- Overrides:
executein classAbstractAggregateDumpTradeStep
-
-