public class ModelFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
context |
| Constructor and Description |
|---|
ModelFactory() |
| Modifier and Type | Method and Description |
|---|---|
IShipAuction |
createAnonymousShipAuction(java.time.LocalDateTime auctionDate,
int startingBid,
IShip ship)
Retrieve an auction instance for a
ship, that has no previous owner, e.g. |
IBuildingAuction |
createBuildingAuction(java.time.LocalDateTime auctionDate,
int startingBid,
IPlayer owner,
IBuilding building)
Retrieve an auction instance for the
building owned by owner, which
will be auctioned on auctionDate starting with startingBid |
IShipAuction |
createShipAuction(java.time.LocalDateTime auctionDate,
int startingBid,
IPlayer owner,
IShip ship)
Retrieve an auction instance for the
ship owned by owner, which
will be auctioned on auctionDate starting with startingBid |
public IBuildingAuction createBuildingAuction(java.time.LocalDateTime auctionDate, int startingBid, IPlayer owner, IBuilding building)
building owned by owner, which
will be auctioned on auctionDate starting with startingBidauctionDate - date of the auctionstartingBid - first bid amountowner - of the building to be auctioned.building - that is auctioned.public IShipAuction createAnonymousShipAuction(java.time.LocalDateTime auctionDate, int startingBid, IShip ship)
ship, that has no previous owner, e.g. because it
was captured during a blockade mission. The auction will happen on auctionDate and
start with startingBid.auctionDate - date of the auctionstartingBid - first bid amountship - that is auctioned.public IShipAuction createShipAuction(java.time.LocalDateTime auctionDate, int startingBid, IPlayer owner, IShip ship)
ship owned by owner, which
will be auctioned on auctionDate starting with startingBidauctionDate - date of the auctionstartingBid - first bid amountowner - of the ship that is auctionedship - that is auctioned.Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.