Interface IAuction

    • Method Detail

      • getAuctionDate

        java.time.LocalDateTime getAuctionDate()
        Retrieve the date of the auction.
        Returns:
        date of the auction
      • setAuctionDate

        void setAuctionDate​(java.time.LocalDateTime newDate)
        Set the auction date.
        Parameters:
        newDate - date of the action
      • getStartingBid

        int getStartingBid()
        Retrieve the first bid amount.
        Returns:
        initial bid of the auction
      • getOwner

        java.util.Optional<IPlayer> getOwner()
        Get the owner that is auctioning.
        Returns:
        if the auctioned item has an owner supply him
      • getBidLevel

        EBidLevel getBidLevel()
        Retrieve the current bid level.
        Returns:
        current bid level
      • setBidLevel

        void setBidLevel​(EBidLevel level)
        Set the new bid level.
        Parameters:
        level - bid level
      • getBiddingPlayer

        IPlayer getBiddingPlayer()
        Retrieve the currently bidding player.
        Returns:
        player with the highest bid
      • setBiddingPlayer

        void setBiddingPlayer​(IPlayer player)
        Set the currently bidding player.
        Parameters:
        player - player with the highest bid.
      • getCurrentBid

        int getCurrentBid()
        Retrieve the current bid of the bidding player.
        Returns:
        current bid
      • setCurrentBid

        void setCurrentBid​(int bid)
        Set the current bid.
        Parameters:
        bid - current bid
      • getBiddingPlayers

        java.util.List<IAIPlayer> getBiddingPlayers()
        Retrieve the list of AI players that can bid.
        Returns:
        list of AIPlayers bidding
      • setBiddingPlayers

        void setBiddingPlayers​(java.util.List<IAIPlayer> players)
        Define the list of AI player that can bid.
        Parameters:
        players - list of AIPlayers bidding
      • getCurrentTask

        ch.sahits.game.openpatrician.utilities.CancelableRunnable getCurrentTask()
        Retrieve the current task.
        Returns:
        task for the auction
      • setCurrentTask

        void setCurrentTask​(ch.sahits.game.openpatrician.utilities.CancelableRunnable task)
        Set the current task
        Parameters:
        task - of the auction