public interface IAICaptainHireStrategy
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<ICaptain> |
getCaptain(ICity city) |
Retrieve the captain to be hired.
|
void |
hire(IAIPlayer player,
IShip vessel,
ICaptain captain,
ICity city) |
player hires captain on the vessel. |
boolean |
shouldHire(IAIPlayer player,
IShip vessel,
ICity city) |
Should
player hire captain on the vessel. |
boolean shouldHire(IAIPlayer player, IShip vessel, ICity city)
player hire captain on the vessel.player - making the decisionvessel - on which the captain would end upcity - where the potential captain can be hired.java.util.Optional<ICaptain> getCaptain(ICity city)
city - where the potential captain can be hired.Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.