Class AbstractAuction

  • All Implemented Interfaces:
    IAuction
    Direct Known Subclasses:
    BuildingAuction, ShipAuction

    public abstract class AbstractAuction
    extends java.lang.Object
    implements IAuction
    This class implements the base fuctionality as defined by IAuction.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Nov 13, 2016
    See Also:
    IAuction
    • Constructor Detail

      • AbstractAuction

        public AbstractAuction​(java.time.LocalDateTime auctionDate,
                               int startingBid)
        Construct an auction object without an owner.
        Parameters:
        auctionDate - date of the auction
        startingBid - initial bid
      • AbstractAuction

        public AbstractAuction​(java.time.LocalDateTime auctionDate,
                               int startingBid,
                               IPlayer owner)
        Create an auction object with a specific owner.
        Parameters:
        auctionDate - date of the acution
        startingBid - initial bid
        owner - owner of the auctioned item