Class BaseTravelerState
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.people.impl.BaseTavernPerson
-
- ch.sahits.game.openpatrician.model.people.impl.BaseTravelerState
-
- All Implemented Interfaces:
IBaseTraveler
,IPerson
,ITavernPerson
- Direct Known Subclasses:
EscorteeState
,FugitiveState
,TravelerState
abstract class BaseTravelerState extends BaseTavernPerson implements IBaseTraveler
Base implementation of a person that needs to travel from one location to another.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 26, 2013
-
-
Field Summary
Fields Modifier and Type Field Description private java.time.LocalDateTime
arrivalAtDestinationDate
private ICity
destination
private int
premium
-
Fields inherited from class ch.sahits.game.openpatrician.model.people.impl.BaseTavernPerson
date
-
-
Constructor Summary
Constructors Constructor Description BaseTravelerState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxDaysPresent()
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.ITavernPerson
getArrivalDate, setCity
-
-
-
-
Field Detail
-
destination
private ICity destination
-
premium
private int premium
-
arrivalAtDestinationDate
private java.time.LocalDateTime arrivalAtDestinationDate
-
-
Method Detail
-
getMaxDaysPresent
public int getMaxDaysPresent()
Description copied from interface:ITavernPerson
Retrieve the max number of days present in the tavern.- Specified by:
getMaxDaysPresent
in interfaceITavernPerson
- Overrides:
getMaxDaysPresent
in classBaseTavernPerson
- Returns:
- max number of present days in the tavern
-
-