Class StorageBasedEventDecisionStrategy
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.strategy.StorageBasedEventDecisionStrategy
-
- All Implemented Interfaces:
ch.sahits.game.openpatrician.model.player.IAIEventDecisionStrategy
public class StorageBasedEventDecisionStrategy extends java.lang.Object implements ch.sahits.game.openpatrician.model.player.IAIEventDecisionStrategyEvent decision strategy based on the stored amount of required goofs.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Dec 18, 2016
-
-
Constructor Summary
Constructors Constructor Description StorageBasedEventDecisionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptMarriagBrokereOffer(ch.sahits.game.openpatrician.model.IAIPlayer player)booleanacceptMarriageOffer(ch.sahits.game.openpatrician.model.IAIPlayer player)booleanshouldOrderCelebration(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.city.ICity city)
-
-
-
Method Detail
-
acceptMarriagBrokereOffer
public boolean acceptMarriagBrokereOffer(ch.sahits.game.openpatrician.model.IAIPlayer player)
- Specified by:
acceptMarriagBrokereOfferin interfacech.sahits.game.openpatrician.model.player.IAIEventDecisionStrategy
-
acceptMarriageOffer
public boolean acceptMarriageOffer(ch.sahits.game.openpatrician.model.IAIPlayer player)
- Specified by:
acceptMarriageOfferin interfacech.sahits.game.openpatrician.model.player.IAIEventDecisionStrategy
-
shouldOrderCelebration
public boolean shouldOrderCelebration(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.city.ICity city)- Specified by:
shouldOrderCelebrationin interfacech.sahits.game.openpatrician.model.player.IAIEventDecisionStrategy
-
-