Class KontorTypeCityRepairStrategy
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.strategy.BaseRepairStrategy
-
- ch.sahits.game.openpatrician.engine.player.strategy.KontorTypeCityRepairStrategy
-
- All Implemented Interfaces:
ch.sahits.game.openpatrician.model.player.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 booleanshouldRepair(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel, ch.sahits.game.openpatrician.model.city.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
repair
-
-
-
-
Method Detail
-
shouldRepair
public boolean shouldRepair(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel, ch.sahits.game.openpatrician.model.city.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.
-
-