Class HometownJoinGuildMinCashStrategy

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

    public class HometownJoinGuildMinCashStrategy
    extends BaseJoinGuildStrategy
    Always join the guild if the player has a certain amount of cash dependent on the entry fee.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Nov 15, 2016
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean additionalJoinRequirementsMet​(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.city.ICity city, java.util.Optional<ch.sahits.game.openpatrician.model.ship.INavigableVessel> vessel)
      Additional requirients added by custom strategies.
      • Methods inherited from class java.lang.Object

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

      • HometownJoinGuildMinCashStrategy

        public HometownJoinGuildMinCashStrategy()
    • Method Detail

      • additionalJoinRequirementsMet

        protected boolean additionalJoinRequirementsMet​(ch.sahits.game.openpatrician.model.IAIPlayer player,
                                                        ch.sahits.game.openpatrician.model.city.ICity city,
                                                        java.util.Optional<ch.sahits.game.openpatrician.model.ship.INavigableVessel> vessel)
        Description copied from class: BaseJoinGuildStrategy
        Additional requirients added by custom strategies.
        Specified by:
        additionalJoinRequirementsMet in class BaseJoinGuildStrategy