| Modifier and Type | Class and Description |
|---|---|
class |
CaptainState
Implementation of the captain.
|
| Modifier and Type | Field and Description |
|---|---|
private ICaptain |
CaptainTownMapping.captain |
| Modifier and Type | Field and Description |
|---|---|
private List<ICaptain> |
CaptainsState.captains |
| Modifier and Type | Method and Description |
|---|---|
List<ICaptain> |
CaptainsState.getAllFreeCaptains()
Retrieve a list of all captains that are not assigned to a town.
|
Optional<ICaptain> |
CaptainsState.getCaptain(ICity city)
Return a captain for a town if there is one.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CaptainsState.addCaptain(ICity city,
org.joda.time.DateTime arrival,
ICaptain captain) |
void |
CaptainsState.assignCaptainToCity(ICaptain captain,
ICity city,
org.joda.time.DateTime arrivalDate)
Assign the captain to a new town.
|
Optional<ICity> |
CaptainsState.findCaptainsCurrentCity(ICaptain captain)
Find the current city of a captain.
|
org.joda.time.DateTime |
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 and Description |
|---|---|
Optional<ICaptain> |
IAICaptainHireStrategy.getCaptain(ICity city)
Retrieve the captain to be hired.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IAICaptainHireStrategy.hire(IAIPlayer player,
IShip vessel,
ICaptain captain,
ICity city)
player hires captain on the vessel. |
| Modifier and Type | Method and Description |
|---|---|
Optional<ICaptain> |
INavigableVessel.getCaptian()
Retrieve the captain of the ship.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IShip.setCaptain(ICaptain captain)
Set the captain on the ship
|
| Modifier and Type | Field and Description |
|---|---|
private Optional<ICaptain> |
Ship.captian |
| Modifier and Type | Method and Description |
|---|---|
Optional<ICaptain> |
ShipGroup.getCaptian() |
Optional<ICaptain> |
Convoy.getCaptian()
Retrieve the captain of the Orleg ship.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Ship.setCaptain(ICaptain captain) |
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.