Class AggregatedBuyTradeStep

  • All Implemented Interfaces:
    ch.sahits.game.openpatrician.model.product.ITradeStep

    public class AggregatedBuyTradeStep
    extends java.lang.Object
    implements ch.sahits.game.openpatrician.model.product.ITradeStep
    Trade step aggregating several wares to buy.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addBuyStep​(ch.sahits.game.openpatrician.model.product.IWare ware, int maxPrice)  
      boolean execute()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • AggregatedBuyTradeStep

        public AggregatedBuyTradeStep()
    • Method Detail

      • addBuyStep

        public void addBuyStep​(ch.sahits.game.openpatrician.model.product.IWare ware,
                               int maxPrice)
      • execute

        public boolean execute()
        Specified by:
        execute in interface ch.sahits.game.openpatrician.model.product.ITradeStep
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object