public class AggregatedCheckedBuyTradeStep 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<CheckedBuyTradeStep> |
tradeSteps |
private ch.sahits.game.openpatrician.model.ship.INavigableVessel |
vessel |
| Constructor and Description |
|---|
AggregatedCheckedBuyTradeStep() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBuyStep(ch.sahits.game.openpatrician.model.product.IWare ware,
int maxPrice) |
boolean |
execute() |
private List<CheckedBuyTradeStep> |
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<CheckedBuyTradeStep> tradeSteps
public void addBuyStep(ch.sahits.game.openpatrician.model.product.IWare ware,
int maxPrice)
private List<CheckedBuyTradeStep> getPriorityList()
public boolean execute()
execute in interface ch.sahits.game.openpatrician.model.product.ITradeStepCopyright © 2011-2017 Sahits GmbH. All Rights Reserved.