public interface IAIShipRepairStrategy
| Modifier and Type | Method and Description |
|---|---|
void |
repair(INavigableVessel vessel,
ICity city)
Initialize the reppair of the vessel.
|
boolean |
shouldRepair(INavigableVessel vessel,
ICity city)
Decide if the
vessel should be repaired, when it is in
city. |
boolean shouldRepair(INavigableVessel vessel, ICity city)
vessel should be repaired, when it is in
city.vessel - that should be checked for repair need.city - current possition of the vessel.void repair(INavigableVessel vessel, ICity city)
vessel - that should be repairedcity - where the vessle currently anchors.Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.