Interface IAIShipRepairStrategy
-
public interface IAIShipRepairStrategyDefining the strategy for repaing a ship.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrepair(INavigableVessel vessel, ICity city)Initialize the reppair of the vessel.booleanshouldRepair(INavigableVessel vessel, ICity city)Decide if thevesselshould be repaired, when it is incity.
-
-
-
Method Detail
-
shouldRepair
boolean shouldRepair(INavigableVessel vessel, ICity city)
Decide if thevesselshould 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.
-
-