Interface INonFreeSeaPirate
-
- All Superinterfaces:
ISeaPirate
,IShipOwner
- All Known Implementing Classes:
NonFreeSeaPirate
public interface INonFreeSeaPirate extends ISeaPirate
Special case of a pirate. A non free pirate is hired by a player. However after a time a non free pirate will become a free pirate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.LocalDateTime
getHireDate()
Date when the pirate was hired by the player.IPlayer
getHiringPlayer()
Player who hired the piratejava.util.Optional<ICity>
roamingNearCity()
Indicates if the pirate is looting near the city.-
Methods inherited from interface ch.sahits.game.openpatrician.model.people.ISeaPirate
getName, getNumberOfKills, getShip
-
Methods inherited from interface ch.sahits.game.openpatrician.model.people.IShipOwner
getLastName
-
-
-
-
Method Detail
-
roamingNearCity
java.util.Optional<ICity> roamingNearCity()
Indicates if the pirate is looting near the city.- Returns:
- optional of the ICity. If it is empty, it means the pirate is not roaming near a city.
-
getHireDate
java.time.LocalDateTime getHireDate()
Date when the pirate was hired by the player.- Returns:
- hiring date.
-
getHiringPlayer
IPlayer getHiringPlayer()
Player who hired the pirate- Returns:
- reference to the player.
-
-