Class TradeStepFactory


  • public class TradeStepFactory
    extends java.lang.Object
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Dec 21, 2016
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
      • Methods inherited from class java.lang.Object

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

      • TradeStepFactory

        public TradeStepFactory()
    • 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 wares
        city - from which to buy the wares
        waresToBuy - wares to buy
        Returns:
        aggregate buy step for the trading offic