Class EightyPercentRepairStrategy

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

    public class EightyPercentRepairStrategy
    extends BaseRepairStrategy
    Repair strategy for going to repair when ship health drops below 80%.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean shouldRepair​(ch.sahits.game.openpatrician.model.ship.INavigableVessel 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

      • EightyPercentRepairStrategy

        public EightyPercentRepairStrategy()
    • Method Detail

      • shouldRepair

        public boolean shouldRepair​(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
                                    ch.sahits.game.openpatrician.model.city.ICity city)