public class CourierState extends BasePatrolState implements ICourier, IUpdatableCityRelatedState
isPresentPropertyisPresentProperty| Modifier and Type | Field and Description |
|---|---|
private CityUtilities |
cityUtils |
private static RandomNameLoader |
firstNameLoader |
private static RandomNameLoader |
lastNameLoader |
private int |
premium |
private Random |
rnd |
currentDestIndex, destinations| Constructor and Description |
|---|
CourierState() |
| Modifier and Type | Method and Description |
|---|---|
void |
update(ICity startCity)
Update the state by using the referenced city.
|
private void |
updateDestinations(ICity startCity,
int nbDestinations) |
arrive, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leaveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDestinations, getName, getPremiumarrive, getArrivalDate, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave, setCity@Autowired private Random rnd
@Autowired private CityUtilities cityUtils
private int premium
private static RandomNameLoader firstNameLoader
private static RandomNameLoader lastNameLoader
public void update(ICity startCity)
IUpdatableCityRelatedStateupdate in interface IUpdatableCityRelatedStateprivate void updateDestinations(ICity startCity, int nbDestinations)
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.