public class WestRepairStrategy extends BaseRepairStrategy
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.map.IMap |
map |
| Constructor and Description |
|---|
WestRepairStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldRepair(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.city.ICity city)
Should repair only if deamage is heavy or if the ship is in a city in the
west half of the map.
|
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-2016 Sahits GmbH. All Rights Reserved.