Interface IAIShipRepairStrategy
-
- All Known Implementing Classes:
BaseRepairStrategy
,EightyPercentRepairStrategy
,HometownRepairStrategy
,KontorTypeCityRepairStrategy
,OnlyTradingOfficeRepairStrategy
,WestRepairStrategy
public interface IAIShipRepairStrategy
Defining the strategy for repaing a ship.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
repair(INavigableVessel vessel, ICity city)
Initialize the reppair of the vessel.boolean
shouldRepair(INavigableVessel vessel, ICity city)
Decide if thevessel
should be repaired, when it is incity
.
-
-
-
Method Detail
-
shouldRepair
boolean shouldRepair(INavigableVessel vessel, ICity city)
Decide if thevessel
should be repaired, when it is incity
.- Parameters:
vessel
- that should be checked for repair need.city
- current possition of the vessel.- Returns:
- true if the ship should be repaired.
-
repair
void repair(INavigableVessel vessel, ICity city)
Initialize the reppair of the vessel.- Parameters:
vessel
- that should be repairedcity
- where the vessle currently anchors.
-
-