| Modifier and Type | Class | Description |
|---|---|---|
class |
CaptainState |
Implementation of the captain.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<ICaptain> |
CaptainsState.getAllFreeCaptains() |
Retrieve a list of all captains that are not assigned to a town.
|
java.util.Optional<ICaptain> |
CaptainsState.getCaptain(ICity city) |
Return a captain for a town if there is one.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
CaptainsState.addCaptain(ICity city,
java.time.LocalDateTime arrival,
ICaptain captain) |
|
void |
CaptainsState.assignCaptainToCity(ICaptain captain,
ICity city,
java.time.LocalDateTime arrivalDate) |
Assign the captain to a new town.
|
java.util.Optional<ICity> |
CaptainsState.findCaptainsCurrentCity(ICaptain captain) |
Find the current city of a captain.
|
java.time.LocalDateTime |
CaptainsState.getArrivalDate(ICaptain captain) |
Retrieve the arrival date of a captain in a town.
|
void |
CaptainsState.hireCaptain(ICaptain captain,
ICity city) |
Remove the captain from the availables.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<ICaptain> |
IAICaptainHireStrategy.getCaptain(ICity city) |
Retrieve the captain to be hired.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
IAICaptainHireStrategy.hire(IAIPlayer player,
IShip vessel,
ICaptain captain,
ICity city) |
player hires captain on the vessel. |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<ICaptain> |
INavigableVessel.getCaptian() |
Retrieve the captain of the ship.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
IShip.setCaptain(ICaptain captain) |
Set the captain on the ship
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<ICaptain> |
Convoy.getCaptian() |
Retrieve the captain of the Orleg ship.
|
java.util.Optional<ICaptain> |
ShipGroup.getCaptian() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
Ship.setCaptain(ICaptain captain) |
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.