Class BaseHireCaptainForShipAboveSizeStrategy

  • All Implemented Interfaces:
    ch.sahits.game.openpatrician.model.player.IAICaptainHireStrategy
    Direct Known Subclasses:
    HireCaptainForMediumShipsStrategy

    public abstract class BaseHireCaptainForShipAboveSizeStrategy
    extends BaseHireCaptainStrategy
    Base strategy for hiring a captain only for ships of a minimal capacity
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Jul 31, 2016
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean shouldHire​(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.ship.IShip vessel, 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

      • BaseHireCaptainForShipAboveSizeStrategy

        public BaseHireCaptainForShipAboveSizeStrategy​(int minShipCapacity)
    • Method Detail

      • shouldHire

        public boolean shouldHire​(ch.sahits.game.openpatrician.model.IAIPlayer player,
                                  ch.sahits.game.openpatrician.model.ship.IShip vessel,
                                  ch.sahits.game.openpatrician.model.city.ICity city)