public abstract class AbstractBuyTradeStep extends Object implements ch.sahits.game.openpatrician.model.product.ITradeStep
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.city.ICity |
city |
private ch.sahits.game.openpatrician.model.product.ComputablePriceV2 |
computablePrice |
private boolean |
executeNext |
private ch.sahits.game.openpatrician.model.ship.INavigableVessel |
vessel |
private ch.sahits.game.openpatrician.model.product.IWare |
ware |
| Constructor and Description |
|---|
AbstractBuyTradeStep() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
buyWare(int availableAmount,
ch.sahits.game.openpatrician.model.IPlayer player,
ch.sahits.game.openpatrician.model.ICompany company,
int affordableAmount)
Execute the transaction of buying the ware from the city and moving it onto the ship
|
private ch.sahits.game.openpatrician.model.city.ICity city
private ch.sahits.game.openpatrician.model.product.IWare ware
private ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel
private boolean executeNext
@Autowired private ch.sahits.game.openpatrician.model.product.ComputablePriceV2 computablePrice
protected boolean buyWare(int availableAmount,
ch.sahits.game.openpatrician.model.IPlayer player,
ch.sahits.game.openpatrician.model.ICompany company,
int affordableAmount)
availableAmount - amount available in the cityplayer - doing the transactioncompany - of the playeraffordableAmount - amount that should be boughtCopyright © 2011-2017 Sahits GmbH. All Rights Reserved.