Class AbstractAuction
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.city.guild.impl.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 byIAuction.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Nov 13, 2016
- See Also:
IAuction
-
-
Constructor Summary
Constructors Constructor Description AbstractAuction(java.time.LocalDateTime auctionDate, int startingBid)Construct an auction object without an owner.AbstractAuction(java.time.LocalDateTime auctionDate, int startingBid, IPlayer owner)Create an auction object with a specific owner.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.model.city.guild.IAuction
getAuctionDate, getBiddingPlayer, getBiddingPlayers, getBidLevel, getCurrentBid, getCurrentTask, getOwner, getStartingBid, setAuctionDate, setBiddingPlayer, setBiddingPlayers, setBidLevel, setCurrentBid, setCurrentTask
-
-
-
-
Constructor Detail
-
AbstractAuction
public AbstractAuction(java.time.LocalDateTime auctionDate, int startingBid)Construct an auction object without an owner.- Parameters:
auctionDate- date of the auctionstartingBid- 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 acutionstartingBid- initial bidowner- owner of the auctioned item
-
-