Class DefaultHireSailorsStrategy

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

    public class DefaultHireSailorsStrategy
    extends java.lang.Object
    implements ch.sahits.game.openpatrician.model.player.IAIHireSailorStrategy
    Strategy for calculating the sailor amount on ships based on the danger level.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2017 Created on Nov 04, 2017
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int calculateRequiredSailorAmount​(ch.sahits.game.openpatrician.model.ship.IShip ship, ch.sahits.game.openpatrician.model.IAIPlayer player)  
      • Methods inherited from class java.lang.Object

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

      • DefaultHireSailorsStrategy

        public DefaultHireSailorsStrategy()
    • Method Detail

      • calculateRequiredSailorAmount

        public int calculateRequiredSailorAmount​(ch.sahits.game.openpatrician.model.ship.IShip ship,
                                                 ch.sahits.game.openpatrician.model.IAIPlayer player)
        Specified by:
        calculateRequiredSailorAmount in interface ch.sahits.game.openpatrician.model.player.IAIHireSailorStrategy