Class AuctionEngine


  • public class AuctionEngine
    extends AbstractEngine
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Nov 07, 2016
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int BID_DELTA  
    • Constructor Summary

      Constructors 
      Constructor Description
      AuctionEngine()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<AbstractEngine> getChildren()
      Any engine may hold various child engines.
      void handleBid​(ch.sahits.game.openpatrician.event.data.AuctionBid bid)  
      void handleBidLevelChange​(ch.sahits.game.openpatrician.event.data.AuctionBidLevel change)  
      void startAuction​(ch.sahits.game.openpatrician.model.city.guild.IAuction auction, java.util.List<ch.sahits.game.openpatrician.model.IAIPlayer> players)  
      • Methods inherited from class java.lang.Object

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

      • AuctionEngine

        public AuctionEngine()
    • Method Detail

      • startAuction

        public void startAuction​(ch.sahits.game.openpatrician.model.city.guild.IAuction auction,
                                 java.util.List<ch.sahits.game.openpatrician.model.IAIPlayer> players)
      • handleBid

        public void handleBid​(ch.sahits.game.openpatrician.event.data.AuctionBid bid)
      • handleBidLevelChange

        public void handleBidLevelChange​(ch.sahits.game.openpatrician.event.data.AuctionBidLevel change)
      • getChildren

        public java.util.List<AbstractEngine> getChildren()
        Description copied from class: AbstractEngine
        Any engine may hold various child engines. This is the way to retrieve them. If there are no child engines, return an empty list. Subclasses have to implement this in the proper way.
        Specified by:
        getChildren in class AbstractEngine
        Returns:
        list of child engines.