INonFreeSeaPirate, ISeaPirate, IShipOwnerpublic class NonFreeSeaPirate extends SeaPirate implements INonFreeSeaPirate
| Constructor | Description |
|---|---|
NonFreeSeaPirate(IPlayer hiringPlayer,
java.time.LocalDateTime hireDate,
ICity nearCity) |
Create a non free pirate.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<ICity> |
roamingNearCity() |
Indicates if the pirate is looting near the city.
|
getHireDate, getHiringPlayergetName, getNumberOfKills, getShipgetLastNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitincNumberOfKillspublic NonFreeSeaPirate(IPlayer hiringPlayer, java.time.LocalDateTime hireDate, ICity nearCity)
hiringPlayer - player who hired the piratehireDate - date on which the pirate was hirednearCity - if the pirate should operate near a city indicate it here, otherwise null.public java.util.Optional<ICity> roamingNearCity()
INonFreeSeaPirateroamingNearCity in interface INonFreeSeaPirateCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.