| Package | Description |
|---|---|
| ch.sahits.game.openpatrician.model.people.impl | |
| ch.sahits.game.openpatrician.model.ship | |
| ch.sahits.game.openpatrician.model.ship.impl |
| 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.assignToOtherCity(ICity city,
ICaptain captain)
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> |
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-2016 Sahits GmbH. All Rights Reserved.