ch.sahits.game.openpatrician.model.player.IAICaptainHireStrategyBaseHireCaptainForShipAboveSizeStrategy, HireCaptainAlwaysStrategy, HireCaptainNeverStrategypublic abstract class BaseHireCaptainStrategy
extends java.lang.Object
implements ch.sahits.game.openpatrician.model.player.IAICaptainHireStrategy
| Modifier and Type | Field | Description |
|---|---|---|
protected ch.sahits.game.openpatrician.model.people.impl.CaptainsState |
captainsState |
| Constructor | Description |
|---|---|
BaseHireCaptainStrategy() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<ch.sahits.game.openpatrician.model.people.ICaptain> |
getCaptain(ch.sahits.game.openpatrician.model.city.ICity city) |
|
void |
hire(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.IShip vessel,
ch.sahits.game.openpatrician.model.people.ICaptain captain,
ch.sahits.game.openpatrician.model.city.ICity city) |
@Autowired protected ch.sahits.game.openpatrician.model.people.impl.CaptainsState captainsState
public java.util.Optional<ch.sahits.game.openpatrician.model.people.ICaptain> getCaptain(ch.sahits.game.openpatrician.model.city.ICity city)
getCaptain in interface ch.sahits.game.openpatrician.model.player.IAICaptainHireStrategypublic void hire(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.IShip vessel,
ch.sahits.game.openpatrician.model.people.ICaptain captain,
ch.sahits.game.openpatrician.model.city.ICity city)
hire in interface ch.sahits.game.openpatrician.model.player.IAICaptainHireStrategyCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.