public class NonFreeSeaPirate extends SeaPirate implements INonFreeSeaPirate
| Modifier and Type | Field and Description |
|---|---|
private org.joda.time.DateTime |
hireDate |
private IPlayer |
hiringPlayer |
private Optional<ICity> |
nearCity |
| Constructor and Description |
|---|
NonFreeSeaPirate(IPlayer hiringPlayer,
org.joda.time.DateTime hireDate,
ICity nearCity)
Create a non free pirate.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<ICity> |
roamingNearCity()
Indicates if the pirate is looting near the city.
|
incNumberOfKillsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHireDate, getHiringPlayergetName, getNumberOfKills, getShipgetLastNameprivate final IPlayer hiringPlayer
private final org.joda.time.DateTime hireDate
public NonFreeSeaPirate(IPlayer hiringPlayer, org.joda.time.DateTime 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 Optional<ICity> roamingNearCity()
INonFreeSeaPirateroamingNearCity in interface INonFreeSeaPirateCopyright © 2011-2016 Sahits GmbH. All Rights Reserved.