Interface ITraveler
-
- All Superinterfaces:
IPerson,ITavernPerson
- All Known Implementing Classes:
TravelerState
public interface ITraveler extends ITavernPerson
Traveler needs to go into a different city.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 23, 2013
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.LocalDateTimegetArrivalAtDestinationDate()Date at which the traveler must arrive at the destination.ICitygetDestination()Get the destination city for the traveler.intgetPremium()Retrieve the premium promised upon delivery.-
Methods inherited from interface ch.sahits.game.openpatrician.model.people.ITavernPerson
arrive, getArrivalDate, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave, setCity
-
-
-
-
Method Detail
-
getDestination
ICity getDestination()
Get the destination city for the traveler.- Returns:
- destination of the traveler
-
getPremium
int getPremium()
Retrieve the premium promised upon delivery.- Returns:
- premium upon delivery at the destination.
-
getArrivalAtDestinationDate
java.time.LocalDateTime getArrivalAtDestinationDate()
Date at which the traveler must arrive at the destination.- Returns:
-
-