Class FleetBasedEventDecisionStrategy

  • All Implemented Interfaces:
    ch.sahits.game.openpatrician.model.player.IAIEventDecisionStrategy

    public class FleetBasedEventDecisionStrategy
    extends java.lang.Object
    implements ch.sahits.game.openpatrician.model.player.IAIEventDecisionStrategy
    Strategy for taking event decitions based on the size of the fleet.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Dec 18, 2016
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean acceptMarriagBrokereOffer​(ch.sahits.game.openpatrician.model.IAIPlayer player)  
      boolean acceptMarriageOffer​(ch.sahits.game.openpatrician.model.IAIPlayer player)  
      boolean shouldOrderCelebration​(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.city.ICity city)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FleetBasedEventDecisionStrategy

        public FleetBasedEventDecisionStrategy()
    • 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