|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IPlayer
Player in the game.
| Method Summary | |
|---|---|
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 |
List<IBuilding> |
findBuildings(ICity city,
Class<? extends IBuilding> buildingClass)
Find all buildings in the city that are some subtype of the indicated class |
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. |
long |
getCash()
Retrieve the amount of money of the player |
ICompany |
getCompany()
Retrieve the company data |
List<IShip> |
getFleet()
Get a list of all ships |
ICity |
getHometown()
Retrieve the players hometown |
String |
getLastName()
Get a players last name |
String |
getName()
Retrieve the players name |
IPersonalData |
getPersonalData()
Retrieve the personal data of the player |
ESocialRank |
getRank()
Retrieve the social rank of the player |
ISpouseData |
getSpouseData()
Retrieve the personal data of the players spouse. |
boolean |
isMale()
Check if the player is male |
void |
removeShip(IShip ship)
Remove a ship for the player |
void |
updateCash(int diff)
Change the available cash of the player |
void |
updateRank(ESocialRank rank)
Update to the new social rank |
| Method Detail |
|---|
IPersonalData getPersonalData()
ISpouseData getSpouseData()
ICompany getCompany()
String getName()
String getLastName()
ICity getHometown()
List<IShip> getFleet()
void addShip(IShip ship)
ship - void removeShip(IShip ship)
ship - boolean isMale()
long getCash()
void updateCash(int diff)
diff - List<IBuilding> findBuildings(ICity city)
city -
ITradingOffice findTradingOffice(ICity city)
city -
List<IBuilding> findBuildings(ICity city,
Class<? extends IBuilding> buildingClass)
city - buildingClass -
ESocialRank getRank()
void updateRank(ESocialRank rank)
rank - ICareer getCareerLevel()
EMilitantCareer or EEconomicCareer.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||