Class KontorTypeCityRepairStrategy
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.strategy.BaseRepairStrategy
-
- ch.sahits.game.openpatrician.engine.player.strategy.KontorTypeCityRepairStrategy
-
- All Implemented Interfaces:
IAIShipRepairStrategy
public class KontorTypeCityRepairStrategy extends BaseRepairStrategy
Repair strategy defines only repairs in cities of kontor type Kontor.
-
-
Constructor Summary
Constructors Constructor Description KontorTypeCityRepairStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldRepair(INavigableVessel vessel, ICity city)
Unless the damage is quite heavy repares are only conducted in cities of type Kontor.-
Methods inherited from class ch.sahits.game.openpatrician.engine.player.strategy.BaseRepairStrategy
dissolveConvoy, repair
-
-
-
-
Method Detail
-
shouldRepair
public boolean shouldRepair(INavigableVessel vessel, ICity city)
Unless the damage is quite heavy repares are only conducted in cities of type Kontor.- Parameters:
vessel
- that should be checked for repair need.city
- current possition of the vessel.- Returns:
- true if the ship is to be constructed in the city.
-
-