class DeliverPackages extends WaitTimeForShipArrivalInCity
| Modifier and Type | Field and Description |
|---|---|
private int |
amount |
private com.google.common.eventbus.AsyncEventBus |
clientEventBus |
private ch.sahits.game.openpatrician.util.l10n.Locale |
locale |
private org.springframework.context.MessageSource |
messageSource |
private int |
premium |
private Random |
rnd |
| Constructor and Description |
|---|
DeliverPackages(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.ship.IShip ship,
org.joda.time.DateTime deadline,
int premium,
int amount) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Action that is taken when the time has run out.
|
boolean |
execute() |
private void |
initializeEventBus() |
handleShipEntersPortprivate final int amount
private final int premium
@Autowired private Random rnd
@Autowired @Qualifier(value="clientEventBus") private com.google.common.eventbus.AsyncEventBus clientEventBus
@Autowired private ch.sahits.game.openpatrician.util.l10n.Locale locale
@Autowired private org.springframework.context.MessageSource messageSource
public DeliverPackages(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.ship.IShip ship,
org.joda.time.DateTime deadline,
int premium,
int amount)
@PostConstruct private void initializeEventBus()
public boolean execute()
execute in class ch.sahits.game.event.handler.ShipEntersPortEventListenerpublic void destroy()
WaitTimeForShipArrivalInCitydestroy in class WaitTimeForShipArrivalInCityCopyright © 2011-2015 Sahits GmbH. All Rights Reserved.