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 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.