public class StorageBasedEventDecisionStrategy extends Object implements ch.sahits.game.openpatrician.model.player.IAIEventDecisionStrategy
| Modifier and Type | Field and Description |
|---|---|
private Map<ch.sahits.game.openpatrician.model.product.IWare,Integer> |
minAmounts |
| Constructor and Description |
|---|
StorageBasedEventDecisionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptMarriagBrokereOffer(ch.sahits.game.openpatrician.model.IAIPlayer player) |
boolean |
acceptMarriageOffer(ch.sahits.game.openpatrician.model.IAIPlayer player) |
private boolean |
enoughStored(ch.sahits.game.openpatrician.model.IPlayer player,
ch.sahits.game.openpatrician.model.city.ICity city) |
boolean |
shouldOrderCelebration(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.city.ICity city) |
public boolean acceptMarriagBrokereOffer(ch.sahits.game.openpatrician.model.IAIPlayer player)
acceptMarriagBrokereOffer in interface ch.sahits.game.openpatrician.model.player.IAIEventDecisionStrategypublic boolean acceptMarriageOffer(ch.sahits.game.openpatrician.model.IAIPlayer player)
acceptMarriageOffer in interface ch.sahits.game.openpatrician.model.player.IAIEventDecisionStrategypublic boolean shouldOrderCelebration(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.city.ICity city)
shouldOrderCelebration in interface ch.sahits.game.openpatrician.model.player.IAIEventDecisionStrategyprivate boolean enoughStored(ch.sahits.game.openpatrician.model.IPlayer player,
ch.sahits.game.openpatrician.model.city.ICity city)
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.