public class HometownRepairStrategy extends BaseRepairStrategy
| Constructor and Description |
|---|
HometownRepairStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldRepair(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.city.ICity city)
Only repair the ship in the hometown unless it is realy badly damaged.
|
dissolveConvoy, repairpublic boolean shouldRepair(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.city.ICity city)
vessel - that should be checked for repair need.city - current possition of the vessel.Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.