IPersonch.sahits.game.openpatrician.model.people.IBasePatrol, IBuyer, IConcurrent, ICourier, IEscorte, IFugitive, IInformant, IPatrol, IPirate, IPirateHunter, ISideRoomPerson, ISmuggler, IThieve, ITrader, ITransportTrader, ITraveler, ITreasureMapOwner, IWarehouseTenantBasePatrolState, BaseTavernPerson, BuyerState, ConcurrentState, CourierState, EscorteeState, FugitiveState, InformantState, PatrolState, PirateHunterState, SmugglerState, TavernPirateState, ThieveState, TraderState, TransportTraderState, TravelerState, TreasureMapOwnerState, WarehouseTenantpublic interface ITavernPerson extends IPerson
| Modifier and Type | Method | Description |
|---|---|---|
void |
arrive() |
Person arrives in the tavern.
|
java.time.LocalDateTime |
getArrivalDate() |
Set the arrival date in the tavern
|
int |
getMaxDaysAbsent() |
Maximum number of days not present in the tavern.
|
int |
getMaxDaysPresent() |
Retrieve the max number of days present in the tavern.
|
int |
getNumberOfDaysSinceArrival() |
Compute the days of absence since the last arrival,
if the person is not present.
|
boolean |
isPresent() |
Flag indicating if the person is present in the tavern.
|
javafx.beans.property.BooleanProperty |
isPresentProperty() |
Property defining the presence/absence state.
|
void |
leave() |
Person leaves the tavern.
|
void |
setCity(ICity city) |
Set the city of the tavern in which the person is located.
|
void leave()
void arrive()
int getNumberOfDaysSinceArrival()
boolean isPresent()
javafx.beans.property.BooleanProperty isPresentProperty()
int getMaxDaysAbsent()
int getMaxDaysPresent()
java.time.LocalDateTime getArrivalDate()
void setCity(ICity city)
city - in which the tavern is located.Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.