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
|
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. |
ICompany |
getCompany()
Retrieve the company data
|
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.
|
ISpouseData |
getSpouseData()
Retrieve the personal data of the players spouse.
|
boolean |
isMale()
Check if the player is male
|
void |
removeSelectableVessel(INavigableVessel vessel)
Remove a selectable vessel from the list.
|
void |
removeShip(IShip ship)
Remove a ship for the player
|
void |
setSegmentedMap(MapSegmentedImage mapSegments)
Set or unset the image for a segmented map (treasure or pirate hideout).
|
void |
updateRank(ESocialRank rank)
Update to the new social rank
|
getHometown, getLastName, getName, getRankreceiveSumgetLastName, getNameIPersonalData getPersonalData()
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 - boolean isMale()
List<IBuilding> findBuildings(ICity city)
city - 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 setSegmentedMap(MapSegmentedImage mapSegments)
mapSegments - MapSegmentedImage getSegmentedMap()
Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.