Class 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.IAIEventDecisionStrategy
    Event decision strategy based on the stored amount of required goofs.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Dec 18, 2016
    • Constructor Detail

      • StorageBasedEventDecisionStrategy

        public StorageBasedEventDecisionStrategy()
    • Method Detail

      • acceptMarriagBrokereOffer

        public boolean acceptMarriagBrokereOffer​(ch.sahits.game.openpatrician.model.IAIPlayer player)
        Specified by:
        acceptMarriagBrokereOffer in interface ch.sahits.game.openpatrician.model.player.IAIEventDecisionStrategy
      • acceptMarriageOffer

        public boolean acceptMarriageOffer​(ch.sahits.game.openpatrician.model.IAIPlayer player)
        Specified by:
        acceptMarriageOffer in interface ch.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:
        shouldOrderCelebration in interface ch.sahits.game.openpatrician.model.player.IAIEventDecisionStrategy