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
-
-
Field Summary
Fields Modifier and Type Field Description private org.springframework.context.ApplicationContext
context
-
Constructor Summary
Constructors Constructor Description TradeStepFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregatedBuyTradingOfficeTradeStep
createAggregatedBuyTradingOfficeTradeStep(ITradingOffice office, ICity city, java.util.List<IWare> waresToBuy)
Create a trade step for buiyn wares into the trading office
-
-
-
Method Detail
-
createAggregatedBuyTradingOfficeTradeStep
public AggregatedBuyTradingOfficeTradeStep createAggregatedBuyTradingOfficeTradeStep(ITradingOffice office, ICity city, java.util.List<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
-
-