public class AggregatedBuyTradeStep 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 org.springframework.context.ApplicationContext |
context |
private boolean |
executeNext |
private ArrayList<BuyTradeStep> |
tradeSteps |
private ch.sahits.game.openpatrician.model.ship.INavigableVessel |
vessel |
| Constructor and Description |
|---|
AggregatedBuyTradeStep() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBuyStep(ch.sahits.game.openpatrician.model.product.IWare ware,
int maxPrice) |
boolean |
execute() |
private List<BuyTradeStep> |
getPriorityList()
Sort the list of wares that should be bought so that the
wares with the least amount are at the begining of the list.
|
String |
toString() |
private ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel
private ch.sahits.game.openpatrician.model.city.ICity city
private boolean executeNext
@Autowired private org.springframework.context.ApplicationContext context
private ArrayList<BuyTradeStep> tradeSteps
public void addBuyStep(ch.sahits.game.openpatrician.model.product.IWare ware,
int maxPrice)
private List<BuyTradeStep> getPriorityList()
public boolean execute()
execute in interface ch.sahits.game.openpatrician.model.product.ITradeStepCopyright © 2011-2016 Sahits GmbH. All Rights Reserved.