Class DangerBasedShipUpgradeStrategy
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.strategy.DangerBasedShipUpgradeStrategy
-
- All Implemented Interfaces:
ch.sahits.game.openpatrician.model.player.IAIShipUpgradeStrategy
public class DangerBasedShipUpgradeStrategy extends java.lang.Object implements ch.sahits.game.openpatrician.model.player.IAIShipUpgradeStrategyUpgrade strategy for hte ship based on the danger.- Author:
- Andi Hotz, (c) Sahits GmbH, 2017 Created on Nov 04, 2017
-
-
Constructor Summary
Constructors Constructor Description DangerBasedShipUpgradeStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldUpgrade(ch.sahits.game.openpatrician.model.ship.IShip ship)voidupgrade(ch.sahits.game.openpatrician.model.ship.IShip ship, ch.sahits.game.openpatrician.model.city.ICity city)
-
-
-
Method Detail
-
shouldUpgrade
public boolean shouldUpgrade(ch.sahits.game.openpatrician.model.ship.IShip ship)
- Specified by:
shouldUpgradein interfacech.sahits.game.openpatrician.model.player.IAIShipUpgradeStrategy
-
upgrade
public void upgrade(ch.sahits.game.openpatrician.model.ship.IShip ship, ch.sahits.game.openpatrician.model.city.ICity city)- Specified by:
upgradein interfacech.sahits.game.openpatrician.model.player.IAIShipUpgradeStrategy
-
-