Class DefaultHireSailorsStrategy
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.strategy.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.IAIHireSailorStrategyStrategy for calculating the sailor amount on ships based on the danger level.- Author:
- Andi Hotz, (c) Sahits GmbH, 2017 Created on Nov 04, 2017
-
-
Constructor Summary
Constructors Constructor Description DefaultHireSailorsStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcalculateRequiredSailorAmount(ch.sahits.game.openpatrician.model.ship.IShip ship, ch.sahits.game.openpatrician.model.IAIPlayer player)
-
-
-
Method Detail
-
calculateRequiredSailorAmount
public int calculateRequiredSailorAmount(ch.sahits.game.openpatrician.model.ship.IShip ship, ch.sahits.game.openpatrician.model.IAIPlayer player)- Specified by:
calculateRequiredSailorAmountin interfacech.sahits.game.openpatrician.model.player.IAIHireSailorStrategy
-
-