ICitizen, ICreditor, IShipOwnerIAIPlayer, IHumanPlayerAIPlayer, HumanPlayer, Playerpublic interface IPlayer extends ICitizen, IShipOwner
| Modifier and Type | Method | Description |
|---|---|---|
void |
addSelectableVessel(INavigableVessel vessel) |
Add a selectable vessel to the list.
|
void |
addShip(IShip ship) |
Add a new ship for the player
|
java.util.List<IBuilding> |
findBuildings(ICity city) |
Find all buildings of the player in the city
|
<T extends IBuilding> |
findBuildings(ICity city,
java.lang.Class<T> buildingClass) |
Find all buildings in the city that are some subtype of the indicated class
|
java.util.List<INavigableVessel> |
findShips(ICity city) |
Find all ships in a city
|
java.util.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. |
java.util.List<IChild> |
getChildren() |
Retrieve all children.
|
ICompany |
getCompany() |
Retrieve the company data
|
int |
getCriminalDrive() |
Retrieve the value indicating the criminal drive of the player.
|
java.util.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.
|
java.util.List<INavigableVessel> |
getSelectableVessels() |
Provide a different view on the fleet by containing all the
vessels that can be selected.
|
java.util.Optional<ISpouseData> |
getSpouseData() |
Retrieve the personal data of the players spouse.
|
java.lang.String |
getUuid() |
Retrieve the UUID identifing this player.
|
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()
java.util.Optional<ISpouseData> getSpouseData()
ICompany getCompany()
java.util.List<IShip> getFleet()
java.util.List<INavigableVessel> getSelectableVessels()
void addSelectableVessel(INavigableVessel vessel)
vessel - to be addedvoid removeSelectableVessel(INavigableVessel vessel)
vessel - to be removed.java.util.List<INavigableVessel> findShips(ICity city)
city - in which to fin shipscityvoid addShip(IShip ship)
ship - to be added to the fleet.void removeShip(IShip ship)
ship - to be removed from the fleet.java.util.List<IBuilding> findBuildings(ICity city)
city - where to search for buildings.city owned by the player.java.util.Optional<ITradingOffice> findTradingOffice(ICity city)
city - where to look for a trading officecity.<T extends IBuilding> java.util.List<T> findBuildings(ICity city, java.lang.Class<T> buildingClass)
city - in which to look for buildingsbuildingClass - class of the building that is searchedcity.void updateRank(ESocialRank rank)
rank - new social rank.ICareer getCareerLevel()
EMilitantCareer or EEconomicCareer.void setCareerLevel(ICareer career)
career - new career levelvoid setSegmentedMap(MapSegmentedImage mapSegments)
mapSegments - to be set or unset (null)MapSegmentedImage getSegmentedMap()
void marry(ISpouseData spouse)
spouse - data for the spouse.void spouseDies()
java.util.List<IChild> getChildren()
void updateCrimialDrive(int value)
value - new criminal drive value.int getCriminalDrive()
java.lang.String getUuid()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.