class BaseTravelerState extends BaseTavernPerson implements IUpdatableCityRelatedState
isPresentProperty| Modifier and Type | Field and Description |
|---|---|
private CityUtilities |
cityUtilities |
private ICity |
destination |
private int |
premium |
private Random |
rnd |
| Constructor and Description |
|---|
BaseTravelerState() |
| Modifier and Type | Method and Description |
|---|---|
void |
update(ICity city)
Update the state by using the referenced city.
|
arrive, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leaveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArrivalDate, getMaxDaysAbsent, getMaxDaysPresent, setCityprivate ICity destination
private int premium
@Autowired private CityUtilities cityUtilities
@Autowired private Random rnd
public void update(ICity city)
IUpdatableCityRelatedStateupdate in interface IUpdatableCityRelatedStateCopyright © 2011-2015 Sahits GmbH. All Rights Reserved.