public interface IPlayer extends ICitizen, IShipOwner
| Modifier and Type | Method and Description |
|---|---|
void |
addSelectableVessel(INavigableVessel vessel)
Add a selectable vessel to the list.
|
void |
addShip(IShip ship)
Add a new ship for the player
|
List<IBuilding> |
findBuildings(ICity city)
Find all buildings of the player in the city
|
<T extends IBuilding> |
findBuildings(ICity city,
Class<T> buildingClass)
Find all buildings in the city that are some subtype of the indicated class
|
List<INavigableVessel> |
findShips(ICity city)
Find all ships in a city
|
Optional<ITradingOffice> |
findTradingOffice(ICity city)
Find the trading office of the player in the city.
|
ICareer |
getCareerLevel()
Retrieve the career level, which is either defined by
EMilitantCareer or EEconomicCareer. |
List<IChild> |
getChildren()
Retrieve all children.
|
ICompany |
getCompany()
Retrieve the company data
|
int |
getCriminalDrive()
Retrieve the value indicating the criminal drive of the player.
|
List<IShip> |
getFleet()
Get a list of all ships
|
IPersonalData |
getPersonalData()
Retrieve the personal data of the player
|
MapSegmentedImage |
getSegmentedMap()
Retrieve the segmented image map.
|
List<INavigableVessel> |
getSelectableVessels()
Provide a different view on the fleet by containing all the
vessels that can be selected.
|
Optional<ISpouseData> |
getSpouseData()
Retrieve the personal data of the players spouse.
|
void |
marry(ISpouseData spouse)
Conclude the marriage.
|
void |
removeSelectableVessel(INavigableVessel vessel)
Remove a selectable vessel from the list.
|
void |
removeShip(IShip ship)
Remove a ship for the player
|
void |
setCareerLevel(ICareer career)
Set the current career level.
|
void |
setSegmentedMap(MapSegmentedImage mapSegments)
Set or unset the image for a segmented map (treasure or pirate hideout).
|
void |
spouseDies()
Widow and become unmarried again.
|
void |
updateCrimialDrive(int value)
Update the new value indicating the level of criminallity of the player
|
void |
updateRank(ESocialRank rank)
Update to the new social rank
|
getHometown, getLastName, getName, getRankreceiveSumgetLastName, getNameIPersonalData getPersonalData()
Optional<ISpouseData> getSpouseData()
ICompany getCompany()
List<INavigableVessel> getSelectableVessels()
void addSelectableVessel(INavigableVessel vessel)
vessel - to be addedvoid removeSelectableVessel(INavigableVessel vessel)
vessel - to be removed.List<INavigableVessel> findShips(ICity city)
city - void addShip(IShip ship)
ship - void removeShip(IShip ship)
ship - List<IBuilding> findBuildings(ICity city)
city - Optional<ITradingOffice> findTradingOffice(ICity city)
city - <T extends IBuilding> List<T> findBuildings(ICity city, Class<T> buildingClass)
city - buildingClass - void updateRank(ESocialRank rank)
rank - ICareer getCareerLevel()
EMilitantCareer or EEconomicCareer.void setCareerLevel(ICareer career)
career - void setSegmentedMap(MapSegmentedImage mapSegments)
mapSegments - MapSegmentedImage getSegmentedMap()
void marry(ISpouseData spouse)
spouse - void spouseDies()
void updateCrimialDrive(int value)
value - int getCriminalDrive()
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.