Class FugitiveState
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.people.impl.BaseTavernPerson
-
- ch.sahits.game.openpatrician.model.people.impl.FugitiveState
-
- All Implemented Interfaces:
IBaseTraveler,IFugitive,IPerson,ISideRoomPerson,ITavernPerson
public class FugitiveState extends BaseTavernPerson implements IFugitive
Implementation of an fugitive, who needs to travel to another city and will be attacked by a pirate under way.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 26, 2013
-
-
Field Summary
-
Fields inherited from class ch.sahits.game.openpatrician.model.people.impl.BaseTavernPerson
date
-
-
Constructor Summary
Constructors Constructor Description FugitiveState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalDateTimegetArrivalAtDestinationDate()Date at which the traveler must arrive at the destination.intgetMaxDaysPresent()Retrieve the max number of days present in the tavern.-
Methods inherited from class ch.sahits.game.openpatrician.model.people.impl.BaseTavernPerson
arrive, getMaxDaysAbsent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.model.people.IBaseTraveler
getDestination, getPremium, setArrivalAtDestinationDate, setDestination, setPremium
-
Methods inherited from interface ch.sahits.game.openpatrician.model.people.IFugitive
getDestination, getPremium
-
Methods inherited from interface ch.sahits.game.openpatrician.model.people.ITavernPerson
arrive, getArrivalDate, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave, setCity
-
-
-
-
Method Detail
-
getArrivalAtDestinationDate
public java.time.LocalDateTime getArrivalAtDestinationDate()
Description copied from interface:IFugitiveDate at which the traveler must arrive at the destination.- Specified by:
getArrivalAtDestinationDatein interfaceIFugitive- Returns:
-
getMaxDaysPresent
public int getMaxDaysPresent()
Description copied from interface:ITavernPersonRetrieve the max number of days present in the tavern.- Specified by:
getMaxDaysPresentin interfaceITavernPerson- Overrides:
getMaxDaysPresentin classBaseTavernPerson- Returns:
- max number of present days in the tavern
-
-