Class TradeStepFactory
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.tradesteps.TradeStepFactory
-
public class TradeStepFactory extends java.lang.Object- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Dec 21, 2016
-
-
Constructor Summary
Constructors Constructor Description TradeStepFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregatedBuyTradingOfficeTradeStepcreateAggregatedBuyTradingOfficeTradeStep(ch.sahits.game.openpatrician.model.building.ITradingOffice office, ch.sahits.game.openpatrician.model.city.ICity city, java.util.List<ch.sahits.game.openpatrician.model.product.IWare> waresToBuy)Create a trade step for buiyn wares into the trading office
-
-
-
Method Detail
-
createAggregatedBuyTradingOfficeTradeStep
public AggregatedBuyTradingOfficeTradeStep createAggregatedBuyTradingOfficeTradeStep(ch.sahits.game.openpatrician.model.building.ITradingOffice office, ch.sahits.game.openpatrician.model.city.ICity city, java.util.List<ch.sahits.game.openpatrician.model.product.IWare> waresToBuy)
Create a trade step for buiyn wares into the trading office- Parameters:
office- trading office for which to buy the warescity- from which to buy the wareswaresToBuy- wares to buy- Returns:
- aggregate buy step for the trading offic
-
-