Class ShipAuction
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.city.guild.impl.AbstractAuction
-
- ch.sahits.game.openpatrician.model.city.guild.impl.ShipAuction
-
- All Implemented Interfaces:
IAuction
,IShipAuction
public class ShipAuction extends AbstractAuction implements IShipAuction
- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Nov 13, 2016
-
-
Field Summary
Fields Modifier and Type Field Description private IShip
auctionedShip
-
Constructor Summary
Constructors Constructor Description ShipAuction(java.time.LocalDateTime auctionDate, int startingBid, IPlayer owner, IShip auctionedShip)
Create a ship auction together with it's owner.ShipAuction(java.time.LocalDateTime auctionDate, int startingBid, IShip auctionedShip)
Create a ship auction where the ship did not have a previous 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
-
Methods inherited from interface ch.sahits.game.openpatrician.model.city.guild.IShipAuction
getAuctionedShip
-
-
-
-
Field Detail
-
auctionedShip
private final IShip auctionedShip
-
-
Constructor Detail
-
ShipAuction
public ShipAuction(java.time.LocalDateTime auctionDate, int startingBid, IShip auctionedShip)
Create a ship auction where the ship did not have a previous owner.- Parameters:
auctionDate
- date of the auctionstartingBid
- first bid of the auctionauctionedShip
- ship to be auctioned
-
ShipAuction
public ShipAuction(java.time.LocalDateTime auctionDate, int startingBid, IPlayer owner, IShip auctionedShip)
Create a ship auction together with it's owner.- Parameters:
auctionDate
- date of the auctionstartingBid
- first bid of the auctionowner
- of the shipauctionedShip
- ship to be auctioned
-
-